|
|
@ -54,7 +54,7 @@ UniversalDAppUI.prototype.renderInstanceFromABI = function (contractABI, address |
|
|
|
let self = this |
|
|
|
let self = this |
|
|
|
address = (address.slice(0, 2) === '0x' ? '' : '0x') + address.toString('hex') |
|
|
|
address = (address.slice(0, 2) === '0x' ? '' : '0x') + address.toString('hex') |
|
|
|
address = ethJSUtil.toChecksumAddress(address) |
|
|
|
address = ethJSUtil.toChecksumAddress(address) |
|
|
|
var instance = yo`<div class="instance run-instance ${css.instance} ${css.hidesub}" id="instance${address}"></div>` |
|
|
|
var instance = yo`<div class="instance run-instance border-dark ${css.instance} ${css.hidesub}" id="instance${address}"></div>` |
|
|
|
const context = this.blockchain.context() |
|
|
|
const context = this.blockchain.context() |
|
|
|
|
|
|
|
|
|
|
|
var shortAddress = helper.shortenAddress(address) |
|
|
|
var shortAddress = helper.shortenAddress(address) |
|
|
@ -87,7 +87,7 @@ UniversalDAppUI.prototype.renderInstanceFromABI = function (contractABI, address |
|
|
|
title.querySelector('.btn-group').appendChild(close) |
|
|
|
title.querySelector('.btn-group').appendChild(close) |
|
|
|
|
|
|
|
|
|
|
|
var contractActionsWrapper = yo` |
|
|
|
var contractActionsWrapper = yo` |
|
|
|
<div class="${css.cActionsWrapper} run-instance-content"> |
|
|
|
<div class="${css.cActionsWrapper}"> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
` |
|
|
|
` |
|
|
|
|
|
|
|
|
|
|
@ -97,7 +97,7 @@ UniversalDAppUI.prototype.renderInstanceFromABI = function (contractABI, address |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function toggleClass (e) { |
|
|
|
function toggleClass (e) { |
|
|
|
$(instance).toggleClass(`${css.hidesub} expanded`) |
|
|
|
$(instance).toggleClass(`${css.hidesub} bg-light`) |
|
|
|
// e.currentTarget.querySelector('i')
|
|
|
|
// e.currentTarget.querySelector('i')
|
|
|
|
e.currentTarget.querySelector('i').classList.toggle(`fa-angle-right`) |
|
|
|
e.currentTarget.querySelector('i').classList.toggle(`fa-angle-right`) |
|
|
|
e.currentTarget.querySelector('i').classList.toggle(`fa-angle-down`) |
|
|
|
e.currentTarget.querySelector('i').classList.toggle(`fa-angle-down`) |
|
|
@ -223,7 +223,7 @@ UniversalDAppUI.prototype.getCallButton = function (args) { |
|
|
|
self.blockchain.getInputs(args.funABI) |
|
|
|
self.blockchain.getInputs(args.funABI) |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
const contractActionsContainer = yo`<div class="${css.contractActionsContainer} run-instance-container" >${multiParamManager.render()}</div>` |
|
|
|
const contractActionsContainer = yo`<div class="${css.contractActionsContainer}" >${multiParamManager.render()}</div>` |
|
|
|
contractActionsContainer.appendChild(outputOverride) |
|
|
|
contractActionsContainer.appendChild(outputOverride) |
|
|
|
|
|
|
|
|
|
|
|
return contractActionsContainer |
|
|
|
return contractActionsContainer |
|
|
|