Stefan George
Stefan George
I have a function, which may return an error state: ``` @jsonrpc_method('eth_sendRawTransaction') def eth_sendRawTransaction(request, arg1): if arg1 == 1: return "This worked" else: raise Error("This is an error") ``` The...
Consider removing the `prepareCondition` function as there is no need to have the information provided in this function as part of the smart contract until the redemption process starts. This...
Consider having only one static payout denominator (e.g. 10**18). This way no payout denominator has to be defined per condition, which saves gas and still allows very precise payout slot...
In case a smart contract is interacting directly with the conditional tokens contract it might be useful to return the condition ID to the contract for further reference. `function prepareCondition(address...
Some applications (like Gelato) require to send transactions on behalf of the user under certain conditions. This can be done by deploying and registering Safe modules. The CPK should allow...
Hi Brad, thanks for this gem! I would love to use it in my project but I don't get it running. Could you provide a short example how to use...