Skip to content

Commit

Permalink
fix: issue with bridge address
Browse files Browse the repository at this point in the history
  • Loading branch information
praetoriansentry committed Dec 10, 2024
1 parent 9006c1a commit cd1a382
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions cmd/ulxly/ulxly.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,11 @@ func readDeposit(cmd *cobra.Command) error {
if err != nil {
return err
}
bridgeAddress, err := cmd.Flags().GetString(ArgBridgeAddress)
if err != nil {
return err
}

bridgeAddress := *inputUlxlyArgs.bridgeAddress
toBlock := *inputUlxlyArgs.toBlock
fromBlock := *inputUlxlyArgs.fromBlock
filter := *inputUlxlyArgs.filterSize
Expand Down Expand Up @@ -1068,11 +1071,11 @@ func init() {
}

// Arguments for both bridge and claim
inputUlxlyArgs.rpcURL = ulxlyBridgeAndClaimCmd.PersistentFlags().String(ArgRPCURL, "", "the URL of the RPC to send the transaction")
inputUlxlyArgs.bridgeAddress = ulxlyBridgeAndClaimCmd.PersistentFlags().String(ArgBridgeAddress, "", "the address of the lxly bridge")
inputUlxlyArgs.gasLimit = ulxlyBridgeAndClaimCmd.PersistentFlags().Uint64(ArgGasLimit, 0, "force a gas limit when sending a transaction")
inputUlxlyArgs.chainID = ulxlyBridgeAndClaimCmd.PersistentFlags().String(ArgChainID, "", "set the chain id to be used in the transaction")
inputUlxlyArgs.privateKey = ulxlyBridgeAndClaimCmd.PersistentFlags().String(ArgPrivateKey, "", "the hex encoded private key to be used when sending the tx")
inputUlxlyArgs.rpcURL = ulxlyBridgeAndClaimCmd.PersistentFlags().String(ArgRPCURL, "", "the URL of the RPC to send the transaction")
inputUlxlyArgs.bridgeAddress = ulxlyBridgeAndClaimCmd.PersistentFlags().String(ArgBridgeAddress, "", "the address of the lxly bridge")
inputUlxlyArgs.destAddress = ulxlyBridgeAndClaimCmd.PersistentFlags().String(ArgDestAddress, "", "the address where the bridge will be sent to")
inputUlxlyArgs.timeout = ulxlyBridgeAndClaimCmd.PersistentFlags().Uint64(ArgTimeout, 60, "the amount of time to wait while trying to confirm a transaction receipt")
inputUlxlyArgs.gasPrice = ulxlyBridgeAndClaimCmd.PersistentFlags().String(ArgGasPrice, "", "the gas price to be used")
Expand Down Expand Up @@ -1107,6 +1110,7 @@ func init() {
inputUlxlyArgs.toBlock = getDepositCommand.Flags().Uint64(ArgToBlock, 0, "The end of the range of blocks to retrieve")
inputUlxlyArgs.filterSize = getDepositCommand.Flags().Uint64(ArgFilterSize, 1000, "The batch size for individual filter queries")
getDepositCommand.Flags().String(ArgRPCURL, "", "The RPC URL to read deposit data")
getDepositCommand.Flags().String(ArgBridgeAddress, "", "The address of the ulxly bridge")
getDepositCommand.MarkFlagRequired(ArgFromBlock)

Check failure on line 1114 in cmd/ulxly/ulxly.go

View workflow job for this annotation

GitHub Actions / Lint

Error return value of `getDepositCommand.MarkFlagRequired` is not checked (errcheck)
getDepositCommand.MarkFlagRequired(ArgToBlock)

Check failure on line 1115 in cmd/ulxly/ulxly.go

View workflow job for this annotation

GitHub Actions / Lint

Error return value of `getDepositCommand.MarkFlagRequired` is not checked (errcheck)
getDepositCommand.MarkFlagRequired(ArgRPCURL)

Check failure on line 1116 in cmd/ulxly/ulxly.go

View workflow job for this annotation

GitHub Actions / Lint

Error return value of `getDepositCommand.MarkFlagRequired` is not checked (errcheck)
Expand Down

0 comments on commit cd1a382

Please sign in to comment.