Code Monkey home page Code Monkey logo

ic-go's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ic-go's Issues

When there is another record in one record, the encoding results are inconsistent

For example, code such a structure:

type Transaction = record{
to: principal;
amount: nat;
token_canister: principal;
};

type Block = record {
propose_id: nat;
transactions: vec Transaction;
};

When using rust encode! When encoding, the result is:
4449444c036c02d581cdb40c01bccbd5d00e786d026c03fbca0168eddeb5e10468d8a38ca80d7d010001011deb201ef87230c51f33f64b191e8f336f36f6f7119da10f1b6d1e989f02010a00000000000000050101904e0700000000000000

When encoding with golang encode, the result is:
4449444c036c03fbca0168eddeb5e10468d8a38ca80d7d6d006c02d581cdb40c01bccbd5d00e7d010201011deb201ef87230c51f33f64b191e8f336f36f6f7119da10f1b6d1e989f02010a00000000000000050101904e07

Golang code:
截屏2022-02-11 下午2 41 41

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.