-
Notifications
You must be signed in to change notification settings - Fork 215
Fix new Nitro changes #98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
8b3ded6
47a4668
f0c8551
65e2825
766382b
5b19efc
fb4a469
1ce22f9
38ab2ab
e7c3ee2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -127,16 +127,13 @@ export abstract class L1ToL2Message { | |
| return ethers.utils.stripZeros(value.toHexString()) | ||
| } | ||
|
|
||
| const addressAlias = new Address(fromAddress) | ||
|
|
||
| const from = addressAlias.applyAlias() | ||
|
Comment on lines
-130
to
-132
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. sure we don't need to apply an alias here anymore? The difference is that now the alias is applied int he L1 inbox instead of by arb-os.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ah, |
||
| const chainId = BigNumber.from(l2ChainId) | ||
| const msgNum = BigNumber.from(messageNumber) | ||
|
|
||
| const fields: any[] = [ | ||
| formatNumber(chainId), | ||
| zeroPad(formatNumber(msgNum), 32), | ||
| from.value, | ||
| fromAddress, | ||
| formatNumber(l1BaseFee), | ||
|
|
||
| formatNumber(l1Value), | ||
|
|
@@ -433,7 +430,20 @@ export class L1ToL2MessageReader extends L1ToL2Message { | |
| } | ||
|
|
||
| // not redeemed, has it now expired | ||
| if (await this.isExpired()) { | ||
| try { | ||
| if (await this.isExpired()) { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we should make We could adjust Then adjust Then we won't check |
||
| return L1ToL2MessageStatus.EXPIRED | ||
| } | ||
| } catch (error) { | ||
| // this can happen due to a race condition that | ||
| // the retryable is redeemed/expired in between the calls | ||
| const successfulRedeemReceiptRetry = await this.getSuccessfulRedeem() | ||
| if ( | ||
| successfulRedeemReceiptRetry && | ||
| successfulRedeemReceiptRetry.status === 1 | ||
| ) { | ||
| return L1ToL2MessageStatus.REDEEMED | ||
| } | ||
| return L1ToL2MessageStatus.EXPIRED | ||
| } | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should release a version of the nitro contracts and include that here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OffchainLabs/nitro#723