mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-12 21:34:33 +00:00
[skip ci] fixes macro_assembler
This commit is contained in:
parent
836e087984
commit
dfa2f0099f
@ -206,9 +206,19 @@ proc initComputation(vmState: BaseVMState, tx: Transaction, sender: EthAddress,
|
||||
let gasUsed = 0 #tx.payload.intrinsicGas.GasInt + gasFees[fork][GasTXCreate]
|
||||
|
||||
let contractAddress = generateAddress(sender, tx.accountNonce)
|
||||
let msg = newMessage(tx.gasLimit - gasUsed, tx.gasPrice, tx.to, sender, tx.value, data, tx.payload,
|
||||
contractCreation = false,
|
||||
options = newMessageOptions(origin = sender, createAddress = contractAddress))
|
||||
let msg = Message(
|
||||
depth: 0,
|
||||
gas: tx.gasLimit - gasUsed,
|
||||
gasPrice: tx.gasPrice,
|
||||
origin: sender,
|
||||
sender: sender,
|
||||
contractAddress: contractAddress,
|
||||
codeAddress: tx.to,
|
||||
value: tx.value,
|
||||
data: data,
|
||||
code: tx.payload,
|
||||
contractCreation: false
|
||||
)
|
||||
|
||||
newBaseComputation(vmState, vmState.blockNumber, msg, some(fork))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user