From 619959a7275d4a54035576c3a8930cf4f5efc7f5 Mon Sep 17 00:00:00 2001 From: hide-on-bush-x Date: Wed, 11 Jan 2023 11:34:41 -0300 Subject: [PATCH] Clean --- src/common/helpers/masa/index.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/common/helpers/masa/index.ts b/src/common/helpers/masa/index.ts index 3ba7193b..f11dbfb6 100644 --- a/src/common/helpers/masa/index.ts +++ b/src/common/helpers/masa/index.ts @@ -12,24 +12,21 @@ const envs = { local: 'http://localhost:4000/', }; - export const createRandomWallet = (): Wallet => { - console.info("Creating random wallet!"); + console.info('Creating random wallet!'); const wallet = ethers.Wallet.createRandom(); wallet.connect( - new ethers.providers.JsonRpcProvider("https://rpc.ankr.com/eth_goerli") + new ethers.providers.JsonRpcProvider('https://rpc.ankr.com/eth_goerli') ); return wallet; }; - export const createNewMasa = ( newWallet, env: 'dev' | 'beta' | 'test' | 'local' = 'dev' ) => { - - const signer = newWallet ? newWallet : createRandomWallet() + const signer = newWallet ? newWallet : createRandomWallet(); return new Masa({ cookie: config.cookie || undefined, wallet: signer,