-
Notifications
You must be signed in to change notification settings - Fork 266
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
564165e
commit ac23981
Showing
3 changed files
with
79 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -436,7 +436,7 @@ rpc { | |
}, | ||
trace { | ||
version: "1.0", | ||
enabled: "true" | ||
enabled: "false" | ||
}, | ||
rsk { | ||
version: "1.0", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
|
||
account_new acc1 10000000 | ||
|
||
# account with no contract code | ||
|
||
account_new delegated 0 | ||
|
||
# contract account with delegate call | ||
|
||
# code | ||
# PUSH1 0x00 (output data size) | ||
# PUSH1 0x00 (output data offset) | ||
# PUSH1 0x00 (input data size) | ||
# PUSH1 0x00 (input data offset) | ||
# PUSH20 <delegated contract address> | ||
# PUSH2 0x1000 (gas to use) | ||
# DELEGATECALL | ||
# STOP | ||
|
||
account_new delegatecall 0 600060006000600073[delegated]611000f400 | ||
|
||
# invoke delegatecall contract | ||
|
||
transaction_build tx01 | ||
sender acc1 | ||
receiver delegatecall | ||
value 0 | ||
gas 1200000 | ||
build | ||
|
||
block_build b01 | ||
parent g00 | ||
transactions tx01 | ||
build | ||
|
||
block_connect b01 | ||
|
||
# Assert best block | ||
assert_best b01 | ||
|