Skip to content

Commit 5d5817d

Browse files
Set right nonce from private key instead bridge destination (#610)
1 parent 7ce10e6 commit 5d5817d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd/ulxly/ulxly.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -918,6 +918,7 @@ func getBridgeServiceURLs() (map[uint32]string, error) {
918918

919919
func claimEverything(cmd *cobra.Command) error {
920920
privateKey := *inputUlxlyArgs.privateKey
921+
claimerAddress := inputUlxlyArgs.addressOfPrivateKey
921922
gasLimit := *inputUlxlyArgs.gasLimit
922923
chainID := *inputUlxlyArgs.chainID
923924
timeoutTxnReceipt := *inputUlxlyArgs.timeout
@@ -979,7 +980,7 @@ func claimEverything(cmd *cobra.Command) error {
979980

980981
workPool := make(chan *BridgeDeposit, concurrency) // bounded chan for controlled concurrency
981982

982-
nonceCounter, err := currentNonce(cmd.Context(), client, destinationAddress)
983+
nonceCounter, err := currentNonce(cmd.Context(), client, claimerAddress)
983984
if err != nil {
984985
return err
985986
}

0 commit comments

Comments
 (0)