Skip to content

Commit

Permalink
fix: retryable rlp when destAddress is 0x0 (#254)
Browse files Browse the repository at this point in the history
* fix: retryable rlp when destAddress is 0x0

* docs: improve comment

* fix: use ===

* chore: bump version to 3.1.1
  • Loading branch information
gzeoneth authored Mar 1, 2023
1 parent 03484d1 commit 2640a98
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@arbitrum/sdk",
"version": "3.1.0",
"version": "3.1.1",
"description": "Typescript library client-side interactions with Arbitrum",
"author": "Offchain Labs, Inc.",
"license": "Apache-2.0",
Expand Down
3 changes: 2 additions & 1 deletion src/lib/message/L1ToL2Message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,8 @@ export abstract class L1ToL2Message {
formatNumber(l1Value),
formatNumber(maxFeePerGas),
formatNumber(gasLimit),
destAddress,
// when destAddress is 0x0, arbos treat that as nil
destAddress === ethers.constants.AddressZero ? '0x' : destAddress,
formatNumber(l2CallValue),
callValueRefundAddress,
formatNumber(maxSubmissionFee),
Expand Down

0 comments on commit 2640a98

Please sign in to comment.