Merge pull request #4245 from PlanckerLabs/fix_iframe_log

support log transaction from iframe plugin
pull/5370/head
yann300 1 year ago committed by GitHub
commit c302c22add
  1. 2
      libs/remix-lib/src/execution/typeConversion.ts
  2. 2
      libs/remix-ui/terminal/src/lib/components/Context.tsx

@ -24,6 +24,8 @@ function convertToString (v) {
return ret
} else if (BN.isBN(v) || (v.constructor && v.constructor.name === 'BigNumber') || isBigInt(v)) {
return v.toString(10)
} else if (v._isBigNumber) {
return toInt(v._hex)
} else if (v._isBuffer) {
return bufferToHex(v)
} else if (typeof v === 'object') {

@ -16,7 +16,7 @@ const Context = ({opts, provider}: {opts; provider: string}) => {
const i = data.receipt ? data.transactionIndex : data.transactionIndex
const value = val ? typeConversion.toInt(val) : 0
if (provider.startsWith('vm')) {
if (provider && provider.startsWith('vm')) {
return (
<div>
<span>

Loading…
Cancel
Save