Skip to content

Instantly share code, notes, and snippets.

@JesseAbram
Created February 21, 2019 00:13
Show Gist options
  • Save JesseAbram/6570dea792d2597e7417c49f0977f300 to your computer and use it in GitHub Desktop.
Save JesseAbram/6570dea792d2597e7417c49f0977f300 to your computer and use it in GitHub Desktop.
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