[skip ci] fixes macro_assembler

This commit is contained in:
andri lim 2020-01-07 23:26:20 +07:00 committed by zah
parent 836e087984
commit dfa2f0099f
1 changed files with 13 additions and 3 deletions

View File

@ -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))