-
Notifications
You must be signed in to change notification settings - Fork 250
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
Don't serialize args in account.ts #354
Conversation
Convert args in transaction.functionCall
6f71197
to
4c568fb
Compare
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.
Optional documentation requests, good to go afterwards.
@@ -51,8 +51,11 @@ export function deployContract(code: Uint8Array): Action { | |||
return new Action({ deployContract: new DeployContract({code}) }); | |||
} | |||
|
|||
export function functionCall(methodName: string, args: Uint8Array, gas: BN, deposit: BN): Action { | |||
return new Action({functionCall: new FunctionCall({methodName, args, gas, deposit }) }); | |||
export function functionCall(methodName: string, args: Uint8Array | object, gas: BN, deposit: BN): Action { |
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.
Do you mind adding comments to the function? Specifically a note about the possible formats for args would be very helpful. Thanks!
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.
Done
Looks like there are test failures to address |
looks like these were just lint failures, fixed now |
No description provided.