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
// SPDX-License-Identifier: Unlicense pragma solidity ^0.8.16; contract Calc { function multiply(int ui) public returns (int) { return ui; } }
After deploying this contract, I call the multiply method: near call name_contract.testnet multiply '{"ui": 16}' --accountId name_contract.testnet
I get result: '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10'
Ideally, the expected result should be: 16
But if you change the code as follows:
// SPDX-License-Identifier: Unlicense pragma solidity ^0.8.16; contract Calc { address public owner; uint256 public num; function multiply(int ui) public returns (int) { return ui; } }
I get result: Empty result ''
Expected result: 16
The text was updated successfully, but these errors were encountered:
@Scofield-04-21-076 Please pull the latest code and retry. The output is encoded nicely now, for example:
{ output: 16, status: 'SUCCESS' }
I also cannot reproduce your empty result issue.
Please include the commit you built the compiler from in future bug reports.
Sorry, something went wrong.
Merge pull request aurora-is-near#5 from MCJOHN974/shish/compiler/blo…
1b27076
…cks-fix Shish/compiler/blocks fix
No branches or pull requests
After deploying this contract, I call the multiply method:
near call name_contract.testnet multiply '{"ui": 16}' --accountId name_contract.testnet
I get result: '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10'
Ideally, the expected result should be: 16
But if you change the code as follows:
I get result:
Empty result ''
Expected result: 16
The text was updated successfully, but these errors were encountered: