Skip to content

Commit f5f5c08

Browse files
authored
tests/solidity/contracts: fix typo in OpCodes.sol (#24123)
1 parent ada9c77 commit f5f5c08

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/solidity/contracts/OpCodes.sol

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ contract OpCodes {
206206

207207
assembly {
208208
let x := mload(0x40) //Find empty storage location using "free memory pointer"
209-
mstore(x,sig) //Place signature at begining of empty storage
209+
mstore(x,sig) //Place signature at beginning of empty storage
210210
mstore(add(x,0x04),a) // first address parameter. just after signature
211211
mstore(add(x,0x24),a) // 2nd address parameter - first padded. add 32 bytes (not 20 bytes)
212212
mstore(0x40,add(x,0x64)) // this is missing in other examples. Set free pointer before function call. so it is used by called function.
@@ -225,7 +225,7 @@ contract OpCodes {
225225
//callcode
226226
assembly {
227227
let x := mload(0x40) //Find empty storage location using "free memory pointer"
228-
mstore(x,sig) //Place signature at begining of empty storage
228+
mstore(x,sig) //Place signature at beginning of empty storage
229229
mstore(add(x,0x04),a) // first address parameter. just after signature
230230
mstore(add(x,0x24),a) // 2nd address parameter - first padded. add 32 bytes (not 20 bytes)
231231
mstore(0x40,add(x,0x64)) // this is missing in other examples. Set free pointer before function call. so it is used by called function.
@@ -244,7 +244,7 @@ contract OpCodes {
244244
//delegatecall
245245
assembly {
246246
let x := mload(0x40) //Find empty storage location using "free memory pointer"
247-
mstore(x,sig) //Place signature at begining of empty storage
247+
mstore(x,sig) //Place signature at beginning of empty storage
248248
mstore(add(x,0x04),a) // first address parameter. just after signature
249249
mstore(add(x,0x24),a) // 2nd address parameter - first padded. add 32 bytes (not 20 bytes)
250250
mstore(0x40,add(x,0x64)) // this is missing in other examples. Set free pointer before function call. so it is used by called function.

0 commit comments

Comments
 (0)