Skip to content

Commit

Permalink
remove commented code from ethers signer example
Browse files Browse the repository at this point in the history
  • Loading branch information
MCarlomagno committed Dec 7, 2023
1 parent aa281f3 commit 9f4153c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/ethers-signer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ async function main() {
relayerApiKey: process.env.RELAYER_API_KEY,
relayerApiSecret: process.env.RELAYER_API_SECRET,
};
const validUntil = new Date(Date.now() + 1200 * 1000).toISOString();
const validUntil = new Date(Date.now() + 120 * 1000).toISOString();

const client = new Defender(creds);
const provider = client.relaySigner.getProvider();
const signer = client.relaySigner.getSigner(provider, { speed: 'fastest', validUntil });
const signer = client.relaySigner.getSigner(provider, { speed: 'fast', validUntil });

const factory = new ethers.ContractFactory(ERC20Abi, ERC20Bytecode, signer);

// console.log(`Deploying ERC20 contract`);
// const erc20 = await factory.deploy(100, { gasLimit: 8000000, maxFeePerGas: 10000000000, gasPrice: 1e10 });
// console.log(`Contract deployed at address ${erc20.address}`);
console.log(`Deploying ERC20 contract`);
const erc20 = await factory.deploy(100, { gasLimit: 8000000, maxFeePerGas: 10000000000, gasPrice: 1e10 });
console.log(`Contract deployed at address ${erc20.address}`);

const beneficiary = await ethers.Wallet.createRandom().getAddress();

Expand Down

0 comments on commit 9f4153c

Please sign in to comment.