Skip to content

Conversation

Jason-W123
Copy link
Contributor

No description provided.

Copy link
Contributor

@TucksonDev TucksonDev left a 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({
Copy link
Contributor

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');
Copy link
Contributor

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

Copy link
Contributor

@TucksonDev TucksonDev left a 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 !

@TucksonDev TucksonDev merged commit e21f255 into master Mar 25, 2025
2 checks passed
@TucksonDev TucksonDev deleted the add-native-support branch March 25, 2025 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants