We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
We've got tests for eth signed txs in https://github.com/loomnetwork/loom-js/blob/master/src/tests/e2e/client-test-tx-middleware.ts but we don't have any tests for static calls using foreign addresses.
Basically we need a version of the SimpleStore EVM contract that looks something like this:
SimpleStore
contract SimpleStore { mapping(address => uint256) balances; function setBalance(uint256 _val) external { balances[msg.sender] = _val; } function getBalance() public view returns(uint256) { return balances[msg.sender]; } }
The test should then call setBalance followed by getBalance using the same caller (eth:0x...), and verify that the balance matches.
setBalance
getBalance
eth:0x...
The text was updated successfully, but these errors were encountered:
#311
Sorry, something went wrong.
No branches or pull requests
We've got tests for eth signed txs in https://github.com/loomnetwork/loom-js/blob/master/src/tests/e2e/client-test-tx-middleware.ts but we don't have any tests for static calls using foreign addresses.
Basically we need a version of the
SimpleStore
EVM contract that looks something like this:The test should then call
setBalance
followed bygetBalance
using the same caller (eth:0x...
), and verify that the balance matches.The text was updated successfully, but these errors were encountered: