I created a predicate and sent an asset to that. Now I want to spend that predicate using TS SDK.
My predicate is just a true return from the main function.
FuelError: Invalid transaction data: PredicateVerificationFailed(Panic(PredicateReturnedNonOne))
at responseMiddleware (index.mjs:4229:19)
at eval (index.js:284:17)
at async _Provider.sendTransaction (index.mjs:4364:9)
at async buy (page.tsx:268:21)```
@chappie1998 Please try to be more detailed so we can understand what’s happening. It’s challenging to assist you with so little context and short code snippets because one must guess a lot about your implementation, and that’s not very productive.
Hi @chappie1998 , as stated in the documentation this error happens when a predicate fails to validate the input data. Could you share the line of code where instantiate the Predicate class? Also looking at address you shared it seems to be an invalid b256 as it is one character short.
Thanks for sharing @chappie1998 , I’m not seeing where the predicate has been funded, although I assume it is otherwise the error would be not enough funds
Unfortunately I haven’t been able to reproduce it locally as the following test is successful.