Code Monkey home page Code Monkey logo

Comments (5)

trendzetter avatar trendzetter commented on August 30, 2024

I suppose this issue needs to be resolved before kadena.js can be used with Marmalade.

from kadena.js.

CryptoPascal31 avatar CryptoPascal31 commented on August 30, 2024

I suppose this issue needs to be resolved before kadena.js can be used with Marmalade.

Yes, you're right. I would be better....

But in the meantime, I found out a workaround (I'm not very proud of it)

https://github.com/CryptoPascal31/marmalade-ng-sweep-bot/blob/44d1d817992225f40adf9c3e55141981beb2295e/marmalade_ng_client.js#L4

from kadena.js.

javadkh2 avatar javadkh2 commented on August 30, 2024

Based on the api specification it says the proof could be only a base64 string if presented.
https://api.chainweb.com/openapi/pact.html#tag/model-payload
So if there is no proof you don't need to pass the proof field

const cmd = Pact.builder.continuation({
  pactId:"4UdU0LY5hNCNQuuuRAmXKGHf2Q2S4OUAYnEo5X7B60Y", 
  step:0, 
  rollback:true
})

if this throws an exception then we need to update the api specification as well
Could you please check if not passing proof solves the issue?

from kadena.js.

CryptoPascal31 avatar CryptoPascal31 commented on August 30, 2024

According to the Pact code:
https://github.com/kadena-io/pact/blob/445af04190793a1d8fbbfad626e25fb7f4a0c02c/src/Pact/Types/RPC.hs#L98

the field proof is mandatory: Aeson's .: operator.

btw: this should be confirmed by an Haskell/Aeson guru

from kadena.js.

CryptoPascal31 avatar CryptoPascal31 commented on August 30, 2024

I haven't tested until now.
But the merged PR should fix the issue => I'm closing.

from kadena.js.

Related Issues (20)

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.