Giter Site home page Giter Site logo

ksui's Issues

Missing values in TransactionBlockResponse

I'm getting this error when calling attempting to run a paySui transaction through the executeTransactionBlock function:

Exception in thread "main" kotlinx.serialization.MissingFieldException: Fields [timestampMs, checkpoint] are required for type with serial name 'xyz.mcxross.ksui.model.TransactionBlockResponse', but they were missing at path: $

Upon further inspection, I saw that my output payload didn't include those fields at all (as expected from the error). I looked at the Sui source code, and it appears that those fields are optional: https://github.com/MystenLabs/sui/blob/acbf77f807ecc04cb0c44c521abf5c2bbc1a2a9d/crates/sui-json-rpc-types/src/sui_transaction.rs#L209

I believe the fix is to modify the TransactionBlockResponse class to make timestampMs and checkpoint nullable Long? fields. I'm still very new to Sui, so I may be doing something wrong that is perhaps causing these fields to be missing when they shouldn't be. Any insights into this issue would be incredibly valuable to me! Thank you.

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.