mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-11-07 19:31:11 +00:00
remove superfluous byte swap in linkersymbol builtin translation (#455)
- Remove the superfluous byte swap in the `linkersymbol` builtin translation. - Support testing the `linkersymbol` builtin translation in the runner specs. --------- Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
This commit is contained in:
1 parent
2d85ca9755
commit
289af875db
12 files changed
+498
-345
No files matched your search
@@ -0,0 +1,9 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
pragma solidity >=0.6.2;
|
||||
|
||||
library L {
|
||||
function f() public returns(uint r) {
|
||||
r = 10;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
pragma solidity >=0.6.2;
|
||||
|
||||
import "contracts/Library.sol";
|
||||
|
||||
/* runner.json
|
||||
{
|
||||
"differential": false,
|
||||
"actions": [
|
||||
{
|
||||
"Instantiate": {
|
||||
"origin": "Bob",
|
||||
"code": {
|
||||
"Solidity": {
|
||||
"contract": "L",
|
||||
"path": "contracts/Library.sol"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"Instantiate": {
|
||||
"code": {
|
||||
"Solidity": {
|
||||
"contract": "Linked",
|
||||
"path": "contracts/Linked.sol",
|
||||
"libraries": {
|
||||
"contracts/Library.sol": {
|
||||
"L": "0x17bb6d1a8161a52422f86e4460600bdbefc1becd"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"Call": {
|
||||
"dest": {
|
||||
"Instantiated": 1
|
||||
},
|
||||
"data": "dffeadd0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"VerifyCall": {
|
||||
"success": true,
|
||||
"output": "000000000000000000000000000000000000000000000000000000000000000a"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
*/
|
||||
|
||||
contract Linked {
|
||||
function main() public returns (uint) {
|
||||
return L.f();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user