After deploying a SC, tx info returns return_type = 'reverted'


I wrote a simple web app from which I deploy a Smart Contract and I get back an object with attributes like owner, transaction, rawTx, address, call, callStatus and createdAt of the SC. When i request the TX infos, I get back the information “return_type”:“revert”, but I don’t know why.

It looks like, that this is the reason why I can’t get the contract by address.

Best Regards,

Every time you deploy a new contract, you also have to read the txInfo and you have to check the return_type and return_value.

It could be, and that was the case in my situation, that you get a contract_address back from the deployment, but then the transaction fails and the contract is not available.

1 Like