Open
Description
const {HttpJsonRpcConnector, LightWalletProvider, LotusClient, LotusWalletProvider} = require('filecoin.js');
const BigNumber = require("bignumber.js");
const testMnemonic = 'equip will roof matter pink blind book anxiety banner elbow sun young';
async function multisig() {
const connector = new HttpJsonRpcConnector({ url: 'http://localhost:7777'});
const con = new LotusClient(connector);
const lightWalletHttp = new LightWalletProvider(con, () => { return 'testPwd' }, 'test');
await lightWalletHttp.recoverLightWallet(testMnemonic, 'testPwd');
await lightWalletHttp.newAddress();
await lightWalletHttp.newAddress();
const addresses = await lightWalletHttp.getAddresses();
const mnemonicAddress = await lightWalletHttp.newAddress();
const multisigCid = await lightWalletHttp.msigCreate(2, addresses, 0, 0, '1000', addresses[0]);
// const multisigCid = await lightWalletHttp.msigCreate(2, addresses, 0, 0, 0, await walletLotusHttp.getDefaultAddress());
const receipt = await con.state.waitMsg(multisigCid, 0);
console.log(receipt);
const multisigAddress = receipt.ReturnDec.RobustAddress;
console.log(multisigAddress);
const balance = await lightWalletHttp.msigGetAvailableBalance(multisigAddress, []);
console.log(balance);
}
Hi i was testing above sample codes. I ran local devnet node. But when i run this code. it fails with Abortf: caller type bafkqadlgnfwc6mjpmfrwg33vnz2a cannot exec actor type bafkqadtgnfwc6mrpnv2wy5djonuwo
Do i miss something?
Metadata
Metadata
Assignees
Labels
No labels