aboutsummaryrefslogtreecommitdiff
path: root/plugin/evm/export_tx.go
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2020-08-20 01:03:31 -0400
committerDeterminant <[email protected]>2020-08-20 01:03:31 -0400
commita054d19f05a31a0421d6fe1bc534da46921481d5 (patch)
tree63f151a5f1c9ac441529e210209d37505d4f566e /plugin/evm/export_tx.go
parent5fc26bb832c715cfd2628585d41bb82209ecdfe4 (diff)
fix minor bugs
Diffstat (limited to 'plugin/evm/export_tx.go')
-rw-r--r--plugin/evm/export_tx.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugin/evm/export_tx.go b/plugin/evm/export_tx.go
index 423c754..4f47a16 100644
--- a/plugin/evm/export_tx.go
+++ b/plugin/evm/export_tx.go
@@ -8,6 +8,7 @@ import (
"math/big"
"github.com/ava-labs/coreth/core/state"
+ "github.com/ava-labs/go-ethereum/log"
"github.com/ava-labs/gecko/database"
"github.com/ava-labs/gecko/ids"
@@ -149,6 +150,7 @@ func (vm *VM) newExportTx(
func (tx *UnsignedExportTx) EVMStateTransfer(state *state.StateDB) error {
for _, from := range tx.Ins {
+ log.Info("consume", "in", from.Address, "amount", from.Amount, "nonce", from.Nonce, "nonce0", state.GetNonce(from.Address))
amount := new(big.Int).Mul(
new(big.Int).SetUint64(from.Amount), x2cRate)
if state.GetBalance(from.Address).Cmp(amount) < 0 {