Skip to content

Bump substrate & polkadot version#8

Open
pgherveou wants to merge 8 commits intomasterfrom
pg/update-xcm
Open

Bump substrate & polkadot version#8
pgherveou wants to merge 8 commits intomasterfrom
pg/update-xcm

Conversation

@pgherveou
Copy link
Copy Markdown
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
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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