From 324d2fbd58cacb09217043bcd98db8cde400355f Mon Sep 17 00:00:00 2001 From: cam-schultz Date: Wed, 5 Jun 2024 09:09:49 -0500 Subject: [PATCH] log nonce usage --- vms/evm/destination_client.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/vms/evm/destination_client.go b/vms/evm/destination_client.go index 354ea689..b95bf543 100644 --- a/vms/evm/destination_client.go +++ b/vms/evm/destination_client.go @@ -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), @@ -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 }