Default account is not implemented in .call method
Methods to fix: eth.call() contract.methods?.someMethod().call();
after fixing uncomment tests here packages/web3-eth/test/integration/defaults.test.ts
Expected behavior
eth.call() should send request with from = defaultAccount
contract.methods?.someMethod().call(); should send request with from = defaultAccount
Actual behavior
eth.call() should send request with from = undefined
contract.methods?.someMethod().call(); should send request with from = undefined
Steps to reproduce the behavior
- For the test you can use
MsgSender.sol - set default account to contract
contract.setConfig({
defaultAccount: accounts[0],
});
- send a request for a contract
const res = await contractMsgFrom.methods?.from().call();
- res should be
defaultAccount
Check this with 1.x, if its adding default account for eth_call
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. If you believe this was a mistake, please comment.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. If you believe this was a mistake, please comment.