@@ -206,7 +206,7 @@ contract OpCodes {
206
206
207
207
assembly {
208
208
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
210
210
mstore (add (x,0x04 ),a) // first address parameter. just after signature
211
211
mstore (add (x,0x24 ),a) // 2nd address parameter - first padded. add 32 bytes (not 20 bytes)
212
212
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 {
225
225
//callcode
226
226
assembly {
227
227
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
229
229
mstore (add (x,0x04 ),a) // first address parameter. just after signature
230
230
mstore (add (x,0x24 ),a) // 2nd address parameter - first padded. add 32 bytes (not 20 bytes)
231
231
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 {
244
244
//delegatecall
245
245
assembly {
246
246
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
248
248
mstore (add (x,0x04 ),a) // first address parameter. just after signature
249
249
mstore (add (x,0x24 ),a) // 2nd address parameter - first padded. add 32 bytes (not 20 bytes)
250
250
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