Skip to content

Commit

Permalink
remove three debugging logs
Browse files Browse the repository at this point in the history
  • Loading branch information
mikedotexe committed Sep 6, 2020
1 parent 1d24ff2 commit 86125ef
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -704,16 +704,13 @@ class NearProvider {
val
);
} catch (error) {
console.log('aloha web3 error0', error, from, to, data, account);
if (error.panic_msg === null || error.panic_msg === undefined) {
throw Error(`Unknown error: ${JSON.stringify(error)}`);
}
let panic_msg = utils.hexToString(error.panic_msg);
// In some cases message is doubly encoded.
if (utils.isHex(panic_msg)) {
console.log('aloha web3 error1');
panic_msg = utils.hexToString(panic_msg);
console.log('aloha web3 error1', panic_msg);
}
throw Error(`revert ${panic_msg}`);
}
Expand Down

0 comments on commit 86125ef

Please sign in to comment.