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

eth_call not working when sender is set to contract address #2193

Closed
kylesmartin opened this issue Mar 29, 2023 · 4 comments
Closed

eth_call not working when sender is set to contract address #2193

kylesmartin opened this issue Mar 29, 2023 · 4 comments

Comments

@kylesmartin
Copy link

I am having issues running eth_call when from is set to a contract address, e.g.

const providerURL = "<https://moonriver.public.blastapi.io";>

const provider = new ethers.JsonRpcProvider(providerURL, {
    chainId: 1285,
    name: 'moonriver'
});

const result = await provider.call({
    to: "0x22977D497Bc83591aA7FafD5152586fa91e2E30D",
    from: "<CONTRACT_ADDRESS (e.g. a multisig wallet)>",
    data: "0x6057361d0000000000000000000000000000000000000000000000000000000000000005",
})

where 0x22977D497Bc83591aA7FafD5152586fa91e2E30D is a simple storage contract and data calls store with a value of 5.

The code above results in the following error.

info: {
    error: {
        code: -32603,
        message: 'execution fatal: Module(ModuleError { index: 51, error: [10, 0, 0, 0], message: None })'
    },
    payload: { method: 'eth_call', params: [Array], id: 2, jsonrpc: '2.0' }
}
@crystalin
Copy link
Collaborator

@tgmichel I believe this is a known issue, possibly already solved ?

@tgmichel
Copy link
Contributor

Yes it is already fixed and it will be included in the next RT upgrade.

Fix check of EIP-3607 transaction for internal calls

@kylesmartin
Copy link
Author

Cool, I'll close the issue then. Thank you!

@atillabirer
Copy link

Yes it is already fixed and it will be included in the next RT upgrade.

Fix check of EIP-3607 transaction for internal calls

when will this materialize? We're having issues using moonbeam safe multisig.

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

4 participants