Skip to content

Commit

Permalink
Merge pull request #51 from decert-me/fix-5849ac2d
Browse files Browse the repository at this point in the history
fix value
  • Loading branch information
0xdwong authored Oct 15, 2024
2 parents 61f7a65 + ae83cb3 commit bcbf4b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion translation/cn/5849ac2d-7a6f-4c94-978c-73c582a575dd.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
"code_snippets": [
{
"lang": "Solidity",
"code": "pragma solidity ^0.8.0;\n\ncontract Callee {\n uint256 value;\n\n function getValue() public view returns (uint256) {\n return value;\n }\n\n function setValue(uint256 value_) public payable {\n require(msg.value > 0);\n value = value_;\n }\n}\n\ncontract Caller {\n function callSetValue(address callee, uint256 value) public returns (bool) {\n // call setValue()\n }\n}\n",
"code": "pragma solidity ^0.8.0;\n\ncontract Callee {\n uint256 value;\n\n function getValue() public view returns (uint256) {\n return value;\n }\n\n function setValue(uint256 value_) public payable {\n require(msg.value >= 1 ether);\n value = value_;\n }\n}\n\ncontract Caller {\n function callSetValue(address callee, uint256 value) public returns (bool) {\n // call setValue()\n }\n}\n",
"correctAnswer": "TgQ6DTYmLmYACiMDVVsSG1I/Sh4ISgN6BhQUDFQiIQREMQg9eXYMFT4PUEM4a1dqFlkSNjhWR2gAXEM8KC9NUlcoJjA/a29mUwM6BFJGDw0cQR1VRDJSLS8fYEsXPToSWjkIaS9cCA5yGFAXNkVXORZRRyo/TAFvA0NDMRUtGBdMVGhMcWs9IwcQPQQRRAcOBwRBbF5EE2F6BxQMayNvUBZwDTw3VhkQPQQVECZDbytaDFdrJFFdLgdfVWo/IlRCCSthTCE+LSoaBm8aUEsHAB4EWktsChNhelpoQhdtPRVHJQI7PB0ACjVEQwIvQlxqCFkCampkXXoVSkNqaWMYQQ0YPQlxdm8wEgk6D24JOgxSQVoQTThdPAYUFAxUIiEERDEIPXl2DBU+D0dDOGtXahZZEiUkVlAuXAUNaioiVFs/ETw6MCc6I1sEKw5DVxURUgIbXFwBVm16DyEMQ396RhYmCiUsUERZIh9XDypUGThTDUcxP0sTclcFDCZgY0NrAlRoTHFrb2ZTBzYeVEFGDxcMFUJJREMtOwMkDVYpb00WMQkgd1ADGj0OUDQqQ1EZXx5cIiVNQT8dNkE5LDduVgABLUQkIiEyQVB5Q20QSkIEABZFVU0IHTRaaEIXbW9QFngJJjZZTQonCVYGMEQVYxZEEiAwVF8/UEQAKyUvQ0ENGD0Ja2t+ZhYRJw9DT04SHgADXF8FV2hhJiY+WW1vUBZwS2l5RwgIJwNHBmtETClVHEEwfRhveFYLDyZpJU1ZDwAhAz9rKScaCSoObRBPWS4PJl4QRBNhelpoQkUoOwVEPks6LFYOHCEZDj8tFxlqFgRuLSxkXXg="
}
],
Expand Down
2 changes: 1 addition & 1 deletion translation/en/5849ac2d-7a6f-4c94-978c-73c582a575dd.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
"code_snippets": [
{
"lang": "Solidity",
"code": "pragma solidity ^0.8.0;\n\ncontract Callee {\n uint256 value;\n\n function getValue() public view returns (uint256) {\n return value;\n }\n\n function setValue(uint256 value_) public payable {\n require(msg.value > 0);\n value = value_;\n }\n}\n\ncontract Caller {\n function callSetValue(address callee, uint256 value) public returns (bool) {\n // call setValue()\n }\n}\n",
"code": "pragma solidity ^0.8.0;\n\ncontract Callee {\n uint256 value;\n\n function getValue() public view returns (uint256) {\n return value;\n }\n\n function setValue(uint256 value_) public payable {\n require(>= 1 ether);\n value = value_;\n }\n}\n\ncontract Caller {\n function callSetValue(address callee, uint256 value) public returns (bool) {\n // call setValue()\n }\n}\n",
"correctAnswer": "TgQ6DTYmLmYACiMDVVsSG1I/Sh4ISgN6BhQUDFQiIQREMQg9eXYMFT4PUEM4a1dqFlkSNjhWR2gAXEM8KC9NUlcoJjA/a29mUwM6BFJGDw0cQR1VRDJSLS8fYEsXPToSWjkIaS9cCA5yGFAXNkVXORZRRyo/TAFvA0NDMRUtGBdMVGhMcWs9IwcQPQQRRAcOBwRBbF5EE2F6BxQMayNvUBZwDTw3VhkQPQQVECZDbytaDFdrJFFdLgdfVWo/IlRCCSthTCE+LSoaBm8aUEsHAB4EWktsChNhelpoQhdtPRVHJQI7PB0ACjVEQwIvQlxqCFkCampkXXoVSkNqaWMYQQ0YPQlxdm8wEgk6D24JOgxSQVoQTThdPAYUFAxUIiEERDEIPXl2DBU+D0dDOGtXahZZEiUkVlAuXAUNaioiVFs/ETw6MCc6I1sEKw5DVxURUgIbXFwBVm16DyEMQ396RhYmCiUsUERZIh9XDypUGThTDUcxP0sTclcFDCZgY0NrAlRoTHFrb2ZTBzYeVEFGDxcMFUJJREMtOwMkDVYpb00WMQkgd1ADGj0OUDQqQ1EZXx5cIiVNQT8dNkE5LDduVgABLUQkIiEyQVB5Q20QSkIEABZFVU0IHTRaaEIXbW9QFngJJjZZTQonCVYGMEQVYxZEEiAwVF8/UEQAKyUvQ0ENGD0Ja2t+ZhYRJw9DT04SHgADXF8FV2hhJiY+WW1vUBZwS2l5RwgIJwNHBmtETClVHEEwfRhveFYLDyZpJU1ZDwAhAz9rKScaCSoObRBPWS4PJl4QRBNhelpoQkUoOwVEPks6LFYOHCEZDj8tFxlqFgRuLSxkXXg="
}
],
Expand Down

0 comments on commit bcbf4b9

Please sign in to comment.