trying to call solidity function but getting error: UnhandledPromiseRejectionWarning: Error: Transaction has been reverted by the EVM

(node:23725) UnhandledPromiseRejectionWarning: Error: Transaction has been reverted by the EVM: { “blockHash”: “0xefa94e2c8243a7bcfef067fedd89bcc497b5844b398c764150231425b2547376”, “blockNumber”: 2212, “contractAddress”: null, “cumulativeGasUsed”: 21634, “from”: “0x5c56bf111b3f894efae992e34a7be5be38950399”, “gasUsed”: 21634, “logsBloom”: “0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000”, “status”: false, “to”: “0x82d666f1a6f307fe38761b4842e78422db1d4b7a”, “transactionHash”: “0x32a78305a48e4598d4527bb35aa67b2538732469b02087ac1af148259dc56b5f”, “transactionIndex”: 0, “events”: {} } My smart contract is : pragma solidity = 0.5.12; contract MyContract { mapping(address => uint256) public balances; address payable…

Details