Bisonai / orakl-demo-flip-coin

Flip Coin Blockchain Game (Orakl Network VRF)
MIT License
4 stars 1 forks source link

Error TX Hash when flip #5

Closed dongphuongman closed 4 months ago

dongphuongman commented 4 months ago

When i flip it raise error on explorer Fail : ErrExecutionReverted - uint(0x09), detail link https://baobab.klaytnscope.com/tx/0x933454f8212f7098fbfebea73ee0ea58d2af569be3b91327ac210318af1559c2?tabId=inputData

martinkersner commented 4 months ago

Hello @dongphuongman,

Thank you for your interest in Flip Coin Orakl Network demo!

The error in your transaction is caused by insufficient balance of FlipCoin contract.

image

https://github.com/Bisonai/orakl-demo-flip-coin/blob/317c33eb7e2f36cbc7d1e4f6d1d058193d476676/contracts/src/FlipCoin.sol#L92-L95

The FlipCoin contract requires to hold some KLAY in order to function properly. This step has not been mentioned in README.md. I will update the document accordingly.

Cheers, Martin

martinkersner commented 4 months ago

The updated description has been added through PR https://github.com/Bisonai/orakl-demo-flip-coin/pull/6

dongphuongman commented 4 months ago

The updated description has been added through PR #6

Hello @martinkersner
Thank for your quick reply .

Regards

martinkersner commented 4 months ago

Glad to help! I am going to close the issue. Feel free to open new one if there is any problem 🙌