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

Make full version of entropy-client possible to compile on wasm #816

Merged
merged 4 commits into from
May 7, 2024

Conversation

ameba23
Copy link
Contributor

@ameba23 ameba23 commented May 6, 2024

Some minor changes to entropy-client to make it possible to compile on wasm with the full-client feature flag enabled

@ameba23 ameba23 marked this pull request as draft May 6, 2024 12:25
@ameba23 ameba23 marked this pull request as ready for review May 6, 2024 16:00
@ameba23 ameba23 requested a review from JesseAbram May 6, 2024 16:00
@@ -124,8 +123,9 @@ pub async fn register(
_ => None,
};

let account_id32: AccountId32 = signature_request_keypair.public().into();
let account_id: <EntropyConfig as Config>::AccountId = account_id32.into();
// let account_id32: AccountId32 = signature_request_keypair.public().into();
Copy link
Member

Choose a reason for hiding this comment

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

if it isn't needed let's remove

let account_id: <EntropyConfig as Config>::AccountId = account_id32.into();
// let account_id32: AccountId32 = signature_request_keypair.public().into();
let account_id: <EntropyConfig as Config>::AccountId =
SubxtAccountId32(signature_request_keypair.public().0);

for _ in 0..50 {
let block_hash = rpc.chain_get_block_hash(None).await.unwrap();
Copy link
Member

Choose a reason for hiding this comment

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

hmmm is an unwrap here ok, or should we error handle better?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch, we should definitely error handle

@ameba23 ameba23 merged commit 1b1d172 into master May 7, 2024
11 checks passed
@ameba23 ameba23 deleted the peg/client-on-wasm branch May 7, 2024 07:37
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.

2 participants