From f05e058049b590b0a036bd2dcafeec7b75000f67 Mon Sep 17 00:00:00 2001 From: Jeremy Wei Date: Thu, 1 Aug 2024 12:42:53 -0700 Subject: [PATCH] fix --- contracts/test/ERC20toNativePointerTest.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/contracts/test/ERC20toNativePointerTest.js b/contracts/test/ERC20toNativePointerTest.js index c6c024380..f878e1eeb 100644 --- a/contracts/test/ERC20toNativePointerTest.js +++ b/contracts/test/ERC20toNativePointerTest.js @@ -1,5 +1,6 @@ const {setupSigners, deployErc20PointerNative, getAdmin, createTokenFactoryTokenAndMint, ABI, generateWallet, - fundAddress, getSeiAddress + fundAddress, getSeiAddress, + delay } = require("./lib"); const {expect} = require("chai"); @@ -89,10 +90,13 @@ describe("ERC20 to Native Pointer", function () { expect(await pointer.balanceOf(recipient)).to.equal(amount); // fund address so it can transact - await fundAddress(recipient) + await fundAddress(recipient, "1000000000000000000000") + await delay() // unlinked wallet can send balance back to sender (becomes linked at this moment) - await (await pointer.connect(recipientWallet).transfer(sender.evmAddress, amount)).wait() + await (await pointer.connect(recipientWallet).transfer(sender.evmAddress, amount, { + gasPrice: ethers.parseUnits('333', 'gwei') + })).wait() expect(await pointer.balanceOf(recipient)).to.equal(BigInt(0)); expect(await pointer.balanceOf(sender.evmAddress)).to.equal(startBal);