Skip to content

Commit

Permalink
ex: sendether completed
Browse files Browse the repository at this point in the history
  • Loading branch information
Quertyy committed Apr 12, 2023
1 parent 96e8dbe commit a729aed
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/SendEther.huff
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,12 @@


#define macro MAIN() = takes(0) returns(0) {

0x00 calldataload 0xe0 shr
dup1 __FUNC_SIG(sendEther) eq sendJump jumpi
0x00 dup1 revert

sendJump:
0x32 0x00 0x00 0x00 callvalue // [value, argOst, argLen, retOst, retLen]
0x04 calldataload gas // [gas, to, value, argOst, argLen, retOst, retLen]
call // []
}

0 comments on commit a729aed

Please sign in to comment.