transact width

pull/5370/head
LianaHus 5 years ago committed by Liana Husikyan
parent b2fe9f203e
commit bc9d6cdd12
  1. 3
      src/app/ui/txLogger.js
  2. 2
      src/app/ui/universal-dapp-ui.js

@ -302,6 +302,7 @@ function context (self, opts, blockchain) {
var block = data.tx.blockNumber || '' var block = data.tx.blockNumber || ''
var i = data.tx.transactionIndex var i = data.tx.transactionIndex
var value = val ? typeConversion.toInt(val) : 0 var value = val ? typeConversion.toInt(val) : 0
const hashInfo = (block||i) ? '[' : '' + (block) ? 'block:${block}' : '' + (i) ? ' txIndex:${i}' : '' + (block||i) ? ']' : ''
if (blockchain.getProvider() === 'vm') { if (blockchain.getProvider() === 'vm') {
return yo` return yo`
<div> <div>
@ -319,7 +320,7 @@ function context (self, opts, blockchain) {
return yo` return yo`
<div> <div>
<span class=${css.txLog}> <span class=${css.txLog}>
<span class='${css.tx}'>[block:${block} txIndex:${i}]</span> <span class='${css.tx}'>${hashInfo}</span>
<div class=${css.txItem}><span class=${css.txItemTitle}>from:</span> ${from}</div> <div class=${css.txItem}><span class=${css.txItemTitle}>from:</span> ${from}</div>
<div class=${css.txItem}><span class=${css.txItemTitle}>to:</span> ${to}</div> <div class=${css.txItem}><span class=${css.txItemTitle}>to:</span> ${to}</div>
<div class=${css.txItem}><span class=${css.txItemTitle}>value:</span> ${value} wei</div> <div class=${css.txItem}><span class=${css.txItemTitle}>value:</span> ${value} wei</div>

@ -145,7 +145,7 @@ UniversalDAppUI.prototype.renderInstanceFromABI = function (contractABI, address
<label class="">CALLDATA</label> <label class="">CALLDATA</label>
<div class="d-flex justify-content-end w-100 align-items-center"> <div class="d-flex justify-content-end w-100 align-items-center">
${calldataInput} ${calldataInput}
<button id="deployAndRunLLTxSendTransaction" class="${css.instanceButton} btn border-warning text-warning" title="Send data to contract." onclick=${() => sendData()}>Transact</button> <button id="deployAndRunLLTxSendTransaction" class="${css.instanceButton} w-50 btn border-warning text-warning" title="Send data to contract." onclick=${() => sendData()}>Transact</button>
</div> </div>
</div> </div>
<div> <div>

Loading…
Cancel
Save