-
Notifications
You must be signed in to change notification settings - Fork 304
Add native support #139
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
Add native support #139
Conversation
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.
LGTM, but left a minor comment on the approve methods.
*/ | ||
if (isCustomGasTokenChain) { | ||
console.log('Giving allowance to the deployed token to transfer the chain native token'); | ||
const approvalTransactionRequest = await ethBridger.getApproveGasTokenRequest({ |
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.
I think you should either use getApproveGasTokenRequest
(which doesn't need await) and then sendTransaction
(like here), or just approveGasToken
.
ethBridger.nativeToken && ethBridger.nativeToken !== constants.AddressZero; | ||
|
||
if (isCustomGasTokenChain) { | ||
console.log('Custom gas token chain detected'); |
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.
I think it's ok not to log this
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.
LGTM. Thanks @Jason-W123 !
No description provided.