Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
danijelTxFusion committed Dec 18, 2023
1 parent d1dcafd commit 4c67d58
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
7 changes: 3 additions & 4 deletions tests/integration/paymaster.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,11 @@ describe("Paymaster", () => {
const tokenAddress = await tokenContract.getAddress();

// mint tokens to wallet, so it could pay fee with tokens
await tokenContract.mint(
const mintTx = await tokenContract.mint(
Typed.address(await wallet.getAddress()),
Typed.uint256(INIT_MINT_AMOUNT),
);

await utils.sleep(1000); // workaround for duplicated nonce
) as ethers.ContractTransactionResponse;
await mintTx.wait();

const paymasterAbi = require(paymasterPath).abi;
const paymasterBytecode = require(paymasterPath).bytecode;
Expand Down
3 changes: 2 additions & 1 deletion tests/setup/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ docker create -it --name golang --network host --entrypoint /usr/local/bin/entry
docker cp entrypoint.sh golang:/usr/local/bin/entrypoint.sh
docker start -i golang # this will wait for container to execute only if the script is run in interactive mode
docker wait golang
docker cp golang:/root/setup/token.json ../token.json || docker logs golang && exit 1
docker logs golang
docker cp golang:/root/setup/token.json ../token.json || exit 1
docker rm golang
cat ../token.json

0 comments on commit 4c67d58

Please sign in to comment.