0x0 Transaction mined but execution failed

Some times it will occur “0x0 Transaction mined but execution failed” error when you execute contract function on Ethereum. If your contract is tested fully, the main reason should be you use a low gas limit for this function. For example, the metamsk will set gas limit automatically for you according to gas estimation, but if some dynamic parameters in your function changed (such as a function include a loop an d the loop count is decided by time or others’ input), the gas estimation will not output correct result, so the function may fail.

Using a larger gas limit can solve this. If it still not work, write test cases to check if your function works right.

Reference: https://ethereum.stackexchange.com/questions/39731/what-does-0x0-transaction-mined-but-execution-failed-mean-when-attempting-to-d

# Ethereum

0x0 Transaction mined but execution failed
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章