Giter VIP home page Giter VIP logo

predicates-practice-client2's Introduction

Client predicate tryout

Trying to understand how to work with predicates. Predicate code in the backend, currently it's the predicate from the documentation: https://fuellabs.github.io/fuels-ts/guide/predicates/

Steps in frontend:

  1. connect to testnet
  2. setup predicate
  3. trying to do a transaction and letting the predicate be fulfilled, as here (but running into error): https://github.com/FuelLabs/fuels-ts/blob/eda13d72c32f72652a34f926c4b9cf42ac36556c/packages/predicate/src/predicate.test.ts#L96

Error

The error that's thrown is "Error: Invalid struct UtxoId. Field "outputIndex" not present. (argument="UtxoId", value={"transactionId":"0x0000000000000000000000000000000000000000000000000000000000000001"}, code=INVALID_ARGUMENT, version=0.41.0)"

caused by predicate.sendTransaction(request); (App.tsx). It seems like it is caused by request.toTransactionBytes() which is one of the steps within sendTransaction.

predicates-practice-client2's People

Contributors

ewynx avatar

Watchers

 avatar

Forkers

danielbate

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.