Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It doesn't work with latest substrate due to a new type MultiAddress. #199

Closed
Dengjianping opened this issue Dec 8, 2020 · 2 comments
Closed

Comments

@Dengjianping
Copy link

Hi,

I just followed recent commit from substrate, found that subxt couldn't work with latest substrate, error log like this:

Error: Rpc(Request(Error { code: ServerError(1002), message: "Verification Error: Execution failed: ApiError(\"Could not convert parameter `tx` between node and runtime: No such variant in enum MultiAddress\")", data: Some(String("RuntimeApi(\"Execution failed: ApiError(\\\"Could not convert parameter `tx` between node and runtime: No such variant in enum MultiAddress\\\")\")")) }))

And I noticed that the address type has been changed from

pub type Address = <Indices as StaticLookup>::Source;

to

pub type Address = sp_runtime::MultiAddress<AccountId, AccountIndex>;

Tips: paritytech/substrate#7380

@ascjones
Copy link
Contributor

ascjones commented Dec 8, 2020

Yes this currently only supports substrate 2.0.0 which is somewhat old now. I will update it this week hopefully - also will accept PRs.

@Dengjianping
Copy link
Author

Now the master branch supports it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants