-
Notifications
You must be signed in to change notification settings - Fork 2
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
Conversation
crates/client/src/client.rs
Outdated
@@ -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(); |
There was a problem hiding this comment.
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
crates/client/src/client.rs
Outdated
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(); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
Some minor changes to
entropy-client
to make it possible to compile on wasm with thefull-client
feature flag enabled