Skip to content

Commit

Permalink
remove approval
Browse files Browse the repository at this point in the history
  • Loading branch information
fadeev committed Nov 8, 2024
1 parent fbed6dc commit 726f485
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion examples/token/scripts/test.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/bin/bash

set -e
set -x

if [ "$1" = "localnet" ]; then
npx hardhat localnet --exit-on-error & sleep 10
Expand Down
6 changes: 0 additions & 6 deletions examples/token/tasks/transfer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@ const main = async (args: any, hre: HardhatRuntimeEnvironment) => {
const gasAmount =
args.gasAmount && ethers.utils.parseUnits(args.gasAmount, 18);

const tokenContract = await ethers.getContractAt("IERC20", args.from);
const approveTx = await tokenContract
.connect(signer)
.approve(args.from, value);
await approveTx.wait();

const txOptions = {
gasPrice: args.txOptionsGasPrice,
gasLimit: args.txOptionsGasLimit,
Expand Down

0 comments on commit 726f485

Please sign in to comment.