|
34 | 34 | GetHashFunc func(uint64) common.Hash |
35 | 35 | ) |
36 | 36 |
|
37 | | -// Context provides the EVM with auxilary information. Once provided it shouldn't be modified. |
| 37 | +// Context provides the EVM with auxiliary information. Once provided it shouldn't be modified. |
38 | 38 | type Context struct { |
39 | 39 | // CanTransfer returns whether the account contains |
40 | 40 | // sufficient ether to transfer the value |
@@ -99,7 +99,7 @@ func (evm *EVM) Cancel() { |
99 | 99 | atomic.StoreInt32(&evm.abort, 1) |
100 | 100 | } |
101 | 101 |
|
102 | | -// Call executes the contract associated with the addr with the given input as paramaters. It also handles any |
| 102 | +// Call executes the contract associated with the addr with the given input as parameters. It also handles any |
103 | 103 | // necessary value transfer required and takes the necessary steps to create accounts and reverses the state in |
104 | 104 | // case of an execution error or failed value transfer. |
105 | 105 | func (evm *EVM) Call(caller ContractRef, addr common.Address, input []byte, gas, value *big.Int) (ret []byte, err error) { |
@@ -157,7 +157,7 @@ func (evm *EVM) Call(caller ContractRef, addr common.Address, input []byte, gas, |
157 | 157 | return ret, err |
158 | 158 | } |
159 | 159 |
|
160 | | -// CallCode executes the contract associated with the addr with the given input as paramaters. It also handles any |
| 160 | +// CallCode executes the contract associated with the addr with the given input as parameters. It also handles any |
161 | 161 | // necessary value transfer required and takes the necessary steps to create accounts and reverses the state in |
162 | 162 | // case of an execution error or failed value transfer. |
163 | 163 | // |
@@ -203,7 +203,7 @@ func (evm *EVM) CallCode(caller ContractRef, addr common.Address, input []byte, |
203 | 203 | return ret, err |
204 | 204 | } |
205 | 205 |
|
206 | | -// DelegateCall executes the contract associated with the addr with the given input as paramaters. |
| 206 | +// DelegateCall executes the contract associated with the addr with the given input as parameters. |
207 | 207 | // It reverses the state in case of an execution error. |
208 | 208 | // |
209 | 209 | // DelegateCall differs from CallCode in the sense that it executes the given address' code with the caller as context |
|
0 commit comments