-
Notifications
You must be signed in to change notification settings - Fork 16
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
Misc improvements #282
Misc improvements #282
Changes from all commits
2051e5b
8f38ca5
b3b1c72
6e6fc72
604e3d8
2ee27cc
bba6c16
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -755,7 +755,9 @@ class APIService { | |
const tw = oasis.staking.allowWrapper() | ||
params.method = TRANSACTION_TYPE.StakingAllow | ||
params.toAddress = oasis.staking.addressToBech32(await oasis.staking.addressFromRuntimeID(oasis.misc.fromHex(params.runtimeId))) | ||
let result = await this.submitTxBody(params, tw,true,(data)=>this.depositToParatimeAccount(params,resolve,reject,data)).catch(err=>err) | ||
let result = await this.submitTxBody(params, tw, true, (data) => { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. no need to use curly braces here There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. My preference is to have a curly for multiline There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. also nice to use braces for statements (even single statements imo) and no braces for expressions |
||
this.depositToParatimeAccount(params, resolve, reject, data) | ||
}).catch(err=>err) | ||
if(result&&result.error){ | ||
reject({error:result.error}) | ||
} | ||
|
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.
What's a benefit of adding this entry when empty
ids
array is the same as unspecifiedexternally_connectable
manifest key (as long as this theory is true)?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.
Empty
externally_connectable
would do the same. But I think this is easier to understand intuitively, without looking at documentation :Dand I can't add a comment