Skip to main content
added 462 characters in body
Source Link

Also if I add an error handling to the function like this:

let details = await contractInstance.getAgentDetails.call({from:this.state.account},function(error,result){
      console.log("error when executing the function",result);
    });
    

It is weird because i receive the expected output as an error in the result but in a weird format.(note the Xs):

error handling result

Also if I add an error handling to the function like this:

let details = await contractInstance.getAgentDetails.call({from:this.state.account},function(error,result){
      console.log("error when executing the function",result);
    });
    

It is weird because i receive the expected output as an error in the result but in a weird format.(note the Xs):

error handling result

added 6 characters in body
Source Link

errorerror image

error

error image

added 287 characters in body
Source Link

The error that i get is detailed next:

error

The error that i get is detailed next:

error

updated summary
Source Link
Loading
Source Link
Loading