Skip to content

Commit 4d124d6

Browse files
fix: bug with default bridge value (#488)
1 parent df38375 commit 4d124d6

File tree

7 files changed

+8
-13
lines changed

7 files changed

+8
-13
lines changed

cmd/ulxly/ulxly.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1415,11 +1415,10 @@ or if it's actually an intermediate hash.`,
14151415

14161416
// bridge specific args
14171417
inputUlxlyArgs.forceUpdate = ulxlyBridgeCmd.PersistentFlags().Bool(ArgForceUpdate, true, "indicates if the new global exit root is updated or not")
1418-
inputUlxlyArgs.value = ulxlyBridgeCmd.PersistentFlags().String(ArgValue, "", "the amount in wei to be sent along with the transaction")
1418+
inputUlxlyArgs.value = ulxlyBridgeCmd.PersistentFlags().String(ArgValue, "0", "the amount in wei to be sent along with the transaction")
14191419
inputUlxlyArgs.destNetwork = ulxlyBridgeCmd.PersistentFlags().Uint32(ArgDestNetwork, 0, "the rollup id of the destination network")
14201420
inputUlxlyArgs.tokenAddress = ulxlyBridgeCmd.PersistentFlags().String(ArgTokenAddress, "0x0000000000000000000000000000000000000000", "the address of an ERC20 token to be used")
14211421
inputUlxlyArgs.callData = ulxlyBridgeCmd.PersistentFlags().String(ArgCallData, "0x", "call data to be passed directly with bridge-message or as an ERC20 Permit")
1422-
inputUlxlyArgs.callDataFile = ulxlyBridgeCmd.PersistentFlags().String(ArgCallDataFile, "", "a file containing hex encoded call data")
14231422
fatalIfError(ulxlyBridgeCmd.MarkPersistentFlagRequired(ArgDestNetwork))
14241423

14251424
// Claim specific args

doc/polycli_ulxly__bridge.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,11 @@ Commands for moving funds and sending messages from one chain to another
1717

1818
```bash
1919
--call-data string call data to be passed directly with bridge-message or as an ERC20 Permit (default "0x")
20-
--call-data-file string a file containing hex encoded call data
2120
--destination-network uint32 the rollup id of the destination network
2221
--force-update-root indicates if the new global exit root is updated or not (default true)
2322
-h, --help help for bridge
2423
--token-address string the address of an ERC20 token to be used (default "0x0000000000000000000000000000000000000000")
25-
--value string the amount in wei to be sent along with the transaction
24+
--value string the amount in wei to be sent along with the transaction (default "0")
2625
```
2726
2827
The command also inherits flags from parent commands.

doc/polycli_ulxly__bridge_asset.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ The command also inherits flags from parent commands.
100100
```bash
101101
--bridge-address string the address of the lxly bridge
102102
--call-data string call data to be passed directly with bridge-message or as an ERC20 Permit (default "0x")
103-
--call-data-file string a file containing hex encoded call data
104103
--chain-id string set the chain id to be used in the transaction
105104
--config string config file (default is $HOME/.polygon-cli.yaml)
106105
--destination-address string the address where the bridge will be sent to
@@ -114,7 +113,7 @@ The command also inherits flags from parent commands.
114113
--rpc-url string the URL of the RPC to send the transaction
115114
--token-address string the address of an ERC20 token to be used (default "0x0000000000000000000000000000000000000000")
116115
--transaction-receipt-timeout uint the amount of time to wait while trying to confirm a transaction receipt (default 60)
117-
--value string the amount in wei to be sent along with the transaction
116+
--value string the amount in wei to be sent along with the transaction (default "0")
118117
-v, --verbosity int 0 - Silent
119118
100 Panic
120119
200 Fatal

doc/polycli_ulxly__bridge_message.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ The command also inherits flags from parent commands.
9797
```bash
9898
--bridge-address string the address of the lxly bridge
9999
--call-data string call data to be passed directly with bridge-message or as an ERC20 Permit (default "0x")
100-
--call-data-file string a file containing hex encoded call data
101100
--chain-id string set the chain id to be used in the transaction
102101
--config string config file (default is $HOME/.polygon-cli.yaml)
103102
--destination-address string the address where the bridge will be sent to
@@ -111,7 +110,7 @@ The command also inherits flags from parent commands.
111110
--rpc-url string the URL of the RPC to send the transaction
112111
--token-address string the address of an ERC20 token to be used (default "0x0000000000000000000000000000000000000000")
113112
--transaction-receipt-timeout uint the amount of time to wait while trying to confirm a transaction receipt (default 60)
114-
--value string the amount in wei to be sent along with the transaction
113+
--value string the amount in wei to be sent along with the transaction (default "0")
115114
-v, --verbosity int 0 - Silent
116115
100 Panic
117116
200 Fatal

doc/polycli_ulxly__bridge_weth.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ The command also inherits flags from parent commands.
6666
```bash
6767
--bridge-address string the address of the lxly bridge
6868
--call-data string call data to be passed directly with bridge-message or as an ERC20 Permit (default "0x")
69-
--call-data-file string a file containing hex encoded call data
7069
--chain-id string set the chain id to be used in the transaction
7170
--config string config file (default is $HOME/.polygon-cli.yaml)
7271
--destination-address string the address where the bridge will be sent to
@@ -80,7 +79,7 @@ The command also inherits flags from parent commands.
8079
--rpc-url string the URL of the RPC to send the transaction
8180
--token-address string the address of an ERC20 token to be used (default "0x0000000000000000000000000000000000000000")
8281
--transaction-receipt-timeout uint the amount of time to wait while trying to confirm a transaction receipt (default 60)
83-
--value string the amount in wei to be sent along with the transaction
82+
--value string the amount in wei to be sent along with the transaction (default "0")
8483
-v, --verbosity int 0 - Silent
8584
100 Panic
8685
200 Fatal

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ require (
1010
github.com/cenkalti/backoff/v4 v4.3.0
1111
github.com/chzyer/readline v1.5.1 // indirect
1212
github.com/cockroachdb/pebble v1.1.4
13-
github.com/ethereum/go-ethereum v1.14.12
13+
github.com/ethereum/go-ethereum v1.14.13
1414
github.com/gizak/termui/v3 v3.1.1-0.20231111080052-b3569a6cd52d
1515
github.com/google/gofuzz v1.2.0
1616
github.com/hashicorp/golang-lru v1.0.2

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1m
140140
github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
141141
github.com/ethereum/c-kzg-4844 v1.0.3 h1:IEnbOHwjixW2cTvKRUlAAUOeleV7nNM/umJR+qy4WDs=
142142
github.com/ethereum/c-kzg-4844 v1.0.3/go.mod h1:VewdlzQmpT5QSrVhbBuGoCdFJkpaJlO1aQputP83wc0=
143-
github.com/ethereum/go-ethereum v1.14.12 h1:8hl57x77HSUo+cXExrURjU/w1VhL+ShCTJrTwcCQSe4=
144-
github.com/ethereum/go-ethereum v1.14.12/go.mod h1:RAC2gVMWJ6FkxSPESfbshrcKpIokgQKsVKmAuqdekDY=
143+
github.com/ethereum/go-ethereum v1.14.13 h1:L81Wmv0OUP6cf4CW6wtXsr23RUrDhKs2+Y9Qto+OgHU=
144+
github.com/ethereum/go-ethereum v1.14.13/go.mod h1:RAC2gVMWJ6FkxSPESfbshrcKpIokgQKsVKmAuqdekDY=
145145
github.com/ethereum/go-verkle v0.2.2 h1:I2W0WjnrFUIzzVPwm8ykY+7pL2d4VhlsePn4j7cnFk8=
146146
github.com/ethereum/go-verkle v0.2.2/go.mod h1:M3b90YRnzqKyyzBEWJGqj8Qff4IDeXnzFw0P9bFw3uk=
147147
github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg=

0 commit comments

Comments
 (0)