diff --git a/pkg/solana/txm/pendingtx.go b/pkg/solana/txm/pendingtx.go index 52d5cb5cb..aa8a15dff 100644 --- a/pkg/solana/txm/pendingtx.go +++ b/pkg/solana/txm/pendingtx.go @@ -52,7 +52,7 @@ type PendingTx struct { createTs time.Time retentionTs time.Time state TxState - LastValidBlockHeight uint64 // to track expiration + lastValidBlockHeight uint64 // to track expiration BalanceCheck bool From solana.PublicKey // to perform balanceCheck Amount uint64 // to perform balanceCheck diff --git a/pkg/solana/txm/txm.go b/pkg/solana/txm/txm.go index 6ad02799f..c2f6b2071 100644 --- a/pkg/solana/txm/txm.go +++ b/pkg/solana/txm/txm.go @@ -206,7 +206,7 @@ func (txm *Txm) sendWithRetry(ctx context.Context, msg PendingTx) (solanaGo.Tran return solanaGo.Transaction{}, "", solanaGo.Signature{}, fmt.Errorf("failed to get blockhash in soltxm.sendWithRetry: %w", err) } msg.Tx.Message.RecentBlockhash = blockhash.Value.Blockhash - msg.LastValidBlockHeight = blockhash.Value.LastValidBlockHeight + msg.lastValidBlockHeight = blockhash.Value.LastValidBlockHeight // if requested, validate balance before sending transaction. if msg.BalanceCheck {