Skip to content

Instantly share code, notes, and snippets.

@cjpais
Created August 16, 2021 20:39
Show Gist options
  • Save cjpais/518a7b6a358ef897174e5d94bcb8eaed to your computer and use it in GitHub Desktop.
Save cjpais/518a7b6a358ef897174e5d94bcb8eaed to your computer and use it in GitHub Desktop.
Get OpenZeppelin Role Bytes
var ethers = require("ethers");
let role = ethers.utils.keccak256(ethers.utils.toUtf8Bytes('MINTER_ROLE'));
console.log(role)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment