error message

pull/5343/head
bunsenstraat 3 weeks ago committed by Aniket
parent 22dac4d758
commit 5f9ac0483a
  1. 12
      apps/remix-ide/src/blockchain/blockchain.tsx

@ -245,9 +245,9 @@ export class Blockchain extends Plugin {
true, true,
constructor, constructor,
args, args,
(error, data) => { (error, data) => {
if (error) { if (error) {
return statusCb(`creation of ${selectedContract.name} errored: ${error.message ? error.message : error}`) return statusCb(`creation of ${selectedContract.name} errored: ${error.message ? error.message : error.error ? error.error : error}`)
} }
statusCb(`creation of ${selectedContract.name} pending...`) statusCb(`creation of ${selectedContract.name} pending...`)
@ -272,7 +272,7 @@ export class Blockchain extends Plugin {
selectedContract.bytecodeLinkReferences, selectedContract.bytecodeLinkReferences,
(error, data) => { (error, data) => {
if (error) { if (error) {
return statusCb(`creation of ${selectedContract.name} errored: ${error.message ? error.message : error}`) return statusCb(`creation of ${selectedContract.name} errored: ${error.message ? error.message : error.error ? error.error : error}`)
} }
statusCb(`creation of ${selectedContract.name} pending...`) statusCb(`creation of ${selectedContract.name} pending...`)
@ -485,7 +485,7 @@ export class Blockchain extends Plugin {
this.runTx({ data: data, useCall: false }, confirmationCb, continueCb, promptCb, (error, txResult, address) => { this.runTx({ data: data, useCall: false }, confirmationCb, continueCb, promptCb, (error, txResult, address) => {
if (error) { if (error) {
return finalCb(`creation of ${selectedContract.name} errored: ${error.message ? error.message : error}`) return finalCb(`creation of ${selectedContract.name} errored: ${error.message ? error.message : error.error ? error.error : error}`)
} }
if (txResult.receipt.status === false || txResult.receipt.status === '0x0' || txResult.receipt.status === 0) { if (txResult.receipt.status === false || txResult.receipt.status === '0x0' || txResult.receipt.status === 0) {
return finalCb(`creation of ${selectedContract.name} errored: transaction execution failed`) return finalCb(`creation of ${selectedContract.name} errored: transaction execution failed`)
@ -614,7 +614,7 @@ export class Blockchain extends Plugin {
callType, callType,
(error, data) => { (error, data) => {
if (error) { if (error) {
return logCallback(`${logMsg} errored: ${error.message ? error.message : error}`) return logCallback(`${logMsg} errored: ${error.message ? error.message : error.error ? error.error : error}`)
} }
if (!lookupOnly) { if (!lookupOnly) {
logCallback(`${logMsg} pending ... `) logCallback(`${logMsg} pending ... `)
@ -631,7 +631,7 @@ export class Blockchain extends Plugin {
const useCall = funABI.stateMutability === 'view' || funABI.stateMutability === 'pure' const useCall = funABI.stateMutability === 'view' || funABI.stateMutability === 'pure'
this.runTx({ to: address, data, useCall }, confirmationCb, continueCb, promptCb, (error, txResult, _address, returnValue) => { this.runTx({ to: address, data, useCall }, confirmationCb, continueCb, promptCb, (error, txResult, _address, returnValue) => {
if (error) { if (error) {
return logCallback(`${logMsg} errored: ${error.message ? error.message : error}`) return logCallback(`${logMsg} errored: ${error.message ? error.message : error.error ? error.error : error}`)
} }
if (lookupOnly) { if (lookupOnly) {
outputCb(returnValue) outputCb(returnValue)

Loading…
Cancel
Save