Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

contract call and contract creation refactor #252

Merged
merged 12 commits into from
Feb 27, 2019
Prev Previous commit
Next Next commit
make test green
  • Loading branch information
jangko committed Feb 27, 2019
commit 608d4b2bce8fd4ce185e86c7c9e9e5f370e8f421
2 changes: 1 addition & 1 deletion nimbus/tracer.nim
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ proc traceTransaction*(db: BaseChainDB, header: BlockHeader,
stateDiff["beforeRoot"] = %($stateDb.rootHash)
beforeRoot = stateDb.rootHash

let gasUsed = processTransaction(tx, sender, vmState)
gasUsed = processTransaction(tx, sender, vmState)
let txFee = gasUsed.u256 * tx.gasPrice.u256
stateDb.addBalance(header.coinbase, txFee)

Expand Down