Created
July 10, 2021 11:41
-
-
Save tzumby/68b7ce6d5e8365e16b6abeb1b587c56b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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