mcxross / ksui Goto Github PK
View Code? Open in Web Editor NEWKotlin Multiplatform Client Library for Sui.
Home Page: https://mcxross.github.io/ksui/
License: Apache License 2.0
Kotlin Multiplatform Client Library for Sui.
Home Page: https://mcxross.github.io/ksui/
License: Apache License 2.0
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.