Skip to content

Commit

Permalink
log nonce usage
Browse files Browse the repository at this point in the history
  • Loading branch information
cam-schultz committed Jun 5, 2024
1 parent b3c24b2 commit 324d2fb
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion vms/evm/destination_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,13 @@ func NewDestinationClient(
return nil, err
}

logger.Info(
"Initialized destination client",
zap.String("blockchainID", destinationID.String()),
zap.String("evmChainID", evmChainID.String()),
zap.Uint64("nonce", nonce),
)

return &destinationClient{
client: client,
lock: new(sync.Mutex),
Expand Down Expand Up @@ -181,11 +188,12 @@ func (c *destinationClient) SendTx(
)
return err
}
c.currentNonce++
c.logger.Info(
"Sent transaction",
zap.String("txID", signedTx.Hash().String()),
zap.Uint64("nonce", c.currentNonce),
)
c.currentNonce++

return nil
}
Expand Down

0 comments on commit 324d2fb

Please # to comment.