Skip to content

Instantly share code, notes, and snippets.

@tzumby
Created July 10, 2021 11:41
Show Gist options
  • Save tzumby/68b7ce6d5e8365e16b6abeb1b587c56b to your computer and use it in GitHub Desktop.
Save tzumby/68b7ce6d5e8365e16b6abeb1b587c56b to your computer and use it in GitHub Desktop.
const CPK = require('contract-proxy-kit');
const EthersAdapter = CPK.EthersAdapter;
const ethers = require('ethers');
const main = async function() {
const provider = ethers.getDefaultProvider('homestead');
const wallet = ethers.Wallet.createRandom().connect(provider);
const ethLibAdapter = new EthersAdapter({ ethers, signer: wallet});
const cpk = await CPK.default.create({ ethLibAdapter, isSafeApp: false})
}
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment