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

Bump substrate & polkadot version #8

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Conversation

pgherveou
Copy link
Collaborator

@pgherveou pgherveou commented Aug 3, 2023

  • Update substrate and polkadot to point to latest master version
  • Add test with a mock network to test the chain extension

fix #1 #6 #7 paritytech/polkadot-sdk#121

Break down in folders and make code compile

Add skeleton

wip

wip

wip

update build

update

reorganise code

wip
.gitignore Outdated Show resolved Hide resolved
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am using latest master for now for polkadot and substrate, we can pin it to 1.0.0 if needed (this will be a bit annoying to refactor test but should be doable)

/// Returns the query id.
/// TODO: timeout should be generic over the BlockNumber but chain_extension does not support generics.
#[ink(extension = 3)]
fn new_query(timeout: DefaultBlockNumber, match_querier: VersionedMultiLocation) -> u64;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure what's our best option here to pass the timeout, since we can't use generics...


// Attempt to take a response for the specified query.
Command::TakeResponse => {
log::debug!(target: LOG_TARGET, "Take XCM query response");
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a better option here is maybe to make the type Encode, Decode upstream and just return that to the caller...

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

Successfully merging this pull request may close these issues.

Error when building contract with XCM.
1 participant