Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Abortf: caller type bafkqadlgnfwc6mjpmfrwg33vnz2a cannot exec actor type bafkqadtgnfwc6mrpnv2wy5djonuwo #31

Open
junbeomlee opened this issue Mar 31, 2021 · 4 comments

Comments

@junbeomlee
Copy link

junbeomlee commented Mar 31, 2021

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?

@junbeomlee
Copy link
Author

https://github.com/filecoin-project/specs-actors/blob/ed4cfa459568cf5d9afb9b4951a34f97a2e6d48c/actors/builtin/init/init_actor.go#L101

mutltisig cid in filecoin.js is bafkqadtgnfwc6mrpnv2wy5djonuwo but where bafkqadlgnfwc6mjpmfrwg33vnz2a is come from?

@junbeomlee
Copy link
Author

in the case of using LotusWalletProvider it works!

@junbeomlee
Copy link
Author

and i can get cid of each actors?

@junbeomlee
Copy link
Author

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant