Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function renderContractList() {
- const contractListContainer = document.getElementById('contract-list')
- const { contracts } = compiledContract
- Object.keys(contracts).forEach((contract, index) => {
- const label = `contract-id-${index}`
- const gas = contracts[contract].gasEstimates.creation
- createContractInfo(gas, contract, label, function (el) {
- contractListContainer.appendChild(el)
- const btnContainer = document.getElementById(label)
- btnContainer.appendChild(
- buttonFactory('primary', contract, contracts[contract], 'details')
- )
- btnContainer.appendChild(
- buttonFactory('danger', contract, contracts[contract], 'deploy')
- )
- })
- })
- }
Add Comment
Please, Sign In to add comment