web3p / web3.php

A php interface for interacting with the Ethereum blockchain and ecosystem. Native ABI parsing and smart contract interactions.
MIT License
1.17k stars 550 forks source link

Catching EVM revert in contract calls #123

Closed l-henri closed 5 years ago

l-henri commented 5 years ago

Hello,

I am using the library to send transactions to a contract function. I would like to be able to assess when a transaction failed and the EVM reverted. I am using the method $contract->at($contractAddress)->send(), but when the transaction reverts I am not sure how to see it. I tried using the call() method, with the same result. Any tips?

Thanks,

l-henri commented 5 years ago

So what I am doing to go around this is:

sc0Vu commented 5 years ago

@l-henri