Skip to content

Commit ba79b84

Browse files
committed
linter
1 parent 8edae85 commit ba79b84

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cmd/ulxly/ulxly.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1882,7 +1882,7 @@ func getDeposit(bridgeServiceDepositsEndpoint string) (globalIndex *big.Int, ori
18821882
return nil, common.HexToAddress("0x0"), nil, nil, 0, 0, 0, ErrNotReadyForClaim
18831883
} else if bridgeDeposit.Deposit.ClaimTxHash != "" {
18841884
log.Info().Str("claimTxHash", bridgeDeposit.Deposit.ClaimTxHash).Msg("The claim transaction has already been claimed")
1885-
// return nil, common.HexToAddress("0x0"), nil, nil, 0, 0, 0, ErrDepositAlreadyClaimed
1885+
return nil, common.HexToAddress("0x0"), nil, nil, 0, 0, 0, ErrDepositAlreadyClaimed
18861886
}
18871887
originAddress = common.HexToAddress(bridgeDeposit.Deposit.OrigAddr)
18881888
globalIndex.SetString(bridgeDeposit.Deposit.GlobalIndex, 10)
@@ -2436,7 +2436,7 @@ or if it's actually an intermediate hash.`,
24362436
inputUlxlyArgs.gasLimit = ulxlyBridgeAndClaimCmd.PersistentFlags().Uint64(ArgGasLimit, 0, "force a gas limit when sending a transaction")
24372437
inputUlxlyArgs.chainID = ulxlyBridgeAndClaimCmd.PersistentFlags().String(ArgChainID, "", "set the chain id to be used in the transaction")
24382438
inputUlxlyArgs.privateKey = ulxlyBridgeAndClaimCmd.PersistentFlags().String(ArgPrivateKey, "", "the hex encoded private key to be used when sending the tx")
2439-
inputUlxlyArgs.destAddress = ulxlyBridgeAndClaimCmd.Flags().String(ArgDestAddress, "", "the address where the bridge will be sent to")
2439+
inputUlxlyArgs.destAddress = ulxlyBridgeAndClaimCmd.PersistentFlags().String(ArgDestAddress, "", "the address where the bridge will be sent to")
24402440
inputUlxlyArgs.timeout = ulxlyBridgeAndClaimCmd.PersistentFlags().Uint64(ArgTimeout, 60, "the amount of time to wait while trying to confirm a transaction receipt")
24412441
inputUlxlyArgs.gasPrice = ulxlyBridgeAndClaimCmd.PersistentFlags().String(ArgGasPrice, "", "the gas price to be used")
24422442
inputUlxlyArgs.dryRun = ulxlyBridgeAndClaimCmd.PersistentFlags().Bool(ArgDryRun, false, "do all of the transaction steps but do not send the transaction")

errors/smc_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ func TestDecodeSmcErrorCode (t *testing.T) {
2222
assert.Equal(t, "0x9aad315a (unknown selector)", reason)
2323

2424
var emptyInterface interface{}
25-
reason, err = errors.DecodeSmcErrorCode(emptyInterface)
25+
_, err = errors.DecodeSmcErrorCode(emptyInterface)
2626
require.Error(t, err)
2727

2828
code := "0x3bbd317c"

0 commit comments

Comments
 (0)