Code Monkey home page Code Monkey logo

Comments (5)

xlc avatar xlc commented on August 24, 2024 1

That will be due to

#[scale_info(skip_type_params(ConvertEthTx))]
pub struct AcalaUncheckedExtrinsic<Call, Extra: SignedExtension, ConvertEthTx, StorageDepositPerByte, TxFeePerGas>(

and the concrete type of ConvertEthTx is

#[derive(Clone, Encode, Decode, PartialEq, Eq, RuntimeDebug)]
pub struct ConvertEthereumTx;

It is a helper type and should not have impacts to metadata

I will still say it is subxt bug to not ignore it

from acala.

xlc avatar xlc commented on August 24, 2024

it is mostly likely subxt issue. could you provide a reproducible example?

from acala.

trevor-crypto avatar trevor-crypto commented on August 24, 2024

@xlc Hi, please find a minimum reproduction here: https://github.com/trevor-crypto/acala-repro/blob/master/src/main.rs

I stored the metadata in a file called metadata.txt. It is take directly from this node - https://acala-rpc.dwellir.com/ - using the RPC call that I mentioned above.

Many other chains are working using the same method, so just wondering if there is something unique in the Acala metadata that is breaking decoding.

from acala.

trevor-crypto avatar trevor-crypto commented on August 24, 2024

After adding a dbg! to the subxt_metadata crate:

        metadata.map_err(|_e| {
            dbg!(_e);
            "Cannot try_into() to Metadata.".into()
        })

I can see the error!

_e = TypeNameNotFound(
    "ConvertEthTx",
)

Which is defined in the metadata as:

{
  name: ConvertEthTx
  type: null
}

@xlc what's the purpose of this if it's just null?

from acala.

trevor-crypto avatar trevor-crypto commented on August 24, 2024

@xlc Thanks! I will close this and continue the investigation and fix here

from acala.

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.