Skip to content

Commit a1f366e

Browse files
needkaneholiman
authored andcommitted
core/vm: update annotation (#19050)
1 parent df7c461 commit a1f366e

1 file changed

Lines changed: 6 additions & 9 deletions

File tree

‎core/vm/evm.go‎

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -267,9 +267,8 @@ func (evm *EVM) CallCode(caller ContractRef, addr common.Address, input []byte,
267267
snapshot = evm.StateDB.Snapshot()
268268
to = AccountRef(caller.Address())
269269
)
270-
// initialise a new contract and set the code that is to be used by the
271-
// EVM. The contract is a scoped environment for this execution context
272-
// only.
270+
// Initialise a new contract and set the code that is to be used by the EVM.
271+
// The contract is a scoped environment for this execution context only.
273272
contract := NewContract(caller, to, value, gas)
274273
contract.SetCallCode(&addr, evm.StateDB.GetCodeHash(addr), evm.StateDB.GetCode(addr))
275274

@@ -333,9 +332,8 @@ func (evm *EVM) StaticCall(caller ContractRef, addr common.Address, input []byte
333332
to = AccountRef(addr)
334333
snapshot = evm.StateDB.Snapshot()
335334
)
336-
// Initialise a new contract and set the code that is to be used by the
337-
// EVM. The contract is a scoped environment for this execution context
338-
// only.
335+
// Initialise a new contract and set the code that is to be used by the EVM.
336+
// The contract is a scoped environment for this execution context only.
339337
contract := NewContract(caller, to, new(big.Int), gas)
340338
contract.SetCallCode(&addr, evm.StateDB.GetCodeHash(addr), evm.StateDB.GetCode(addr))
341339

@@ -396,9 +394,8 @@ func (evm *EVM) create(caller ContractRef, codeAndHash *codeAndHash, gas uint64,
396394
}
397395
evm.Transfer(evm.StateDB, caller.Address(), address, value)
398396

399-
// initialise a new contract and set the code that is to be used by the
400-
// EVM. The contract is a scoped environment for this execution context
401-
// only.
397+
// Initialise a new contract and set the code that is to be used by the EVM.
398+
// The contract is a scoped environment for this execution context only.
402399
contract := NewContract(caller, AccountRef(address), value, gas)
403400
contract.SetCodeOptionalHash(&address, codeAndHash)
404401

0 commit comments

Comments
 (0)