I'm getting an expected RPC error from Metamask in my chrome console logs:

MetaMask - RPC Error: Error: [ethjs-query] while formatting outputs from RPC '{"value":{"code":-32603,"data":{"message":"VM Exception while processing transaction: revert cooldown active","code":-32000,"data":{"0xae7ba67a53db7edd91013f20040fbc9e1ca57d898b2d4325c1889e34d3fb8ae3":{"error":"revert","program_counter":4618,"return":"0x08c379a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000f636f6f6c646f776e206163746976650000000000000000000000000000000000","reason":"cooldown active"},"stack":"RuntimeError: VM Exception while processing transaction: revert cooldown active\n at Function.RuntimeError.fromResults (/home/contooter/.npm-global/lib/node_modules/truffle/build/webpack:/node_modules/ganache-core/lib/utils/runtimeerror.js:94:1)\n at BlockchainDouble.processBlock (/home/contooter/.npm-global/lib/node_modules/truffle/build/webpack:/node_modules/ganache-core/lib/blockchain_double.js:627:1)\n at runMicrotasks ()\n at processTicksAndRejections (internal/process/task_queues.js:93:5)","name":"RuntimeError"}}}}'

I would like to display the cooldown active part of this message in my React dapp. How can I access this value?

Dec 19, 2020, 2:10 PM

© 2024 Draquery.com All rights reserved.