Hello people! Anyone have worked with harmony before?
I'm trying to use Harmony extension and it gives this error when sending tx to my contract "transaction failed:blockchain chain id:1, given 2: invalid chain id for signer"

const harmonyExt = await new HarmonyExtension((window as any).onewallet)
const erc1155Contract = harmonyExt.contracts.createContract(ERC1155.abi, erc1155);
await erc1155Contract.methods.setApprovalForAll(tx.to, true).send({
gasLimit: "1000001",
gasPrice: 1000000000,
});

Jan 21, 2022, 2:22 AM

© 2024 Draquery.com All rights reserved.