Skip to content

Commit

Permalink
Clean
Browse files Browse the repository at this point in the history
  • Loading branch information
hide-on-bush-x committed Jan 11, 2023
1 parent d991b56 commit 619959a
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/common/helpers/masa/index.ts
Expand Up @@ -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,
Expand Down

0 comments on commit 619959a

Please sign in to comment.