Created
February 21, 2019 00:13
-
-
Save JesseAbram/6570dea792d2597e7417c49f0977f300 to your computer and use it in GitHub Desktop.
This file contains 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 ethers = require('ethers'); | |
const { ADDRESS, ABI, PRIVATE_KEY } = require('./consensysBountyCredentials'); | |
let provider = new ethers.getDefaultProvider('homestead') | |
const wallet = new ethers.Wallet(PRIVATE_KEY, provider) | |
const contract = new ethers.Contract(ADDRESS, ABI, provider) | |
const challange = contract.connect(wallet) | |
console.log(challange) | |
const main = async () => { | |
const hash = await challange.becomeValidator() | |
console.log(hash) | |
} | |
main() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment