-
Notifications
You must be signed in to change notification settings - Fork 17
merge PR 477 from 1.0 #508
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
import BN from 'bn.js' | ||
import gql from 'graphql-tag' | ||
import { | ||
Address, | ||
|
@@ -27,7 +28,7 @@ export interface IGenericPluginState extends IPluginState { | |
|
||
export interface IProposalCreateOptionsGS extends IProposalBaseCreateOptions { | ||
callData?: string | ||
value?: number | ||
value?: BN | ||
} | ||
|
||
export interface IInitParamsGS { | ||
|
@@ -43,7 +44,7 @@ export class GenericPlugin extends ProposalPlugin< | |
IGenericPluginState, | ||
IGenericPluginProposalState, | ||
IProposalCreateOptionsGS | ||
> { | ||
> { | ||
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. why additiional space is 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. This was generated by my editor. I'm not sure what rules it is following, but the change makes sense by aligning the bracket with the lines above. Looks clean and harmless enough to me. |
||
public static fragment = { | ||
name: 'GenericpluginParams', | ||
fragment: gql` | ||
|
@@ -129,7 +130,7 @@ export class GenericPlugin extends ProposalPlugin< | |
return { | ||
contract: this.context.getContract(options.plugin as string), | ||
method: 'proposeCall', | ||
args: [options.callData, options.value, options.descriptionHash] | ||
args: [options.callData, options.value.toString(), options.descriptionHash] | ||
} | ||
} | ||
|
||
|
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.
this plugin is not supported in alchemy yet. so why update that ?
@jellegerbrandy is that needed for Common ?
Uh oh!
There was an error while loading. Please reload this page.
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.
the change is needed in any case. without it we would have a bug by casting a BN to a number, assuming the BN in this case can easily overflow a
number
.However, just to note: I don't think this change was absolutely needed for this particular PR.
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.
Yeah, this is good 👍