Commit faaa3b08 authored by yann300's avatar yann300

fix "transact" label for constructor

parent d99cdf31
......@@ -98,6 +98,8 @@ class MultiParamManager {
button.setAttribute('title', (title + ' - call'))
button.innerHTML = 'call'
this.contractActionsContainerSingle.querySelector(`.${css.instanceButton}`).setAttribute('title', (title + ' - call'))
} else {
button.innerHTML = 'transact'
}
if (this.funABI.inputs && this.funABI.inputs.length > 0) {
......@@ -110,13 +112,11 @@ class MultiParamManager {
if (this.funABI.payable === true) {
contractProperty.classList.add(css.payable)
button.setAttribute('title', (title + ' - transact (payable)'))
button.innerHTML = 'transact'
this.contractActionsContainerSingle.querySelector('button').setAttribute('title', (title + ' - transact (payable)'))
}
if (!this.lookupOnly && this.funABI.payable === false) {
button.setAttribute('title', (title + ' - transact (not payable)'))
button.innerHTML = 'transact'
this.contractActionsContainerSingle.querySelector('button').setAttribute('title', (title + ' - transact (not payable)'))
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment