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

Don't serialize args in account.ts #354

Merged
merged 5 commits into from
Aug 4, 2020
Merged

Don't serialize args in account.ts #354

merged 5 commits into from
Aug 4, 2020

Conversation

vgrichina
Copy link
Contributor

No description provided.

@vgrichina vgrichina force-pushed the function-call-sugar branch from 6f71197 to 4c568fb Compare August 3, 2020 23:43
@vgrichina vgrichina marked this pull request as ready for review August 3, 2020 23:43
@vgrichina vgrichina requested a review from chadoh as a code owner August 3, 2020 23:43
@vgrichina vgrichina requested a review from bowenwang1996 August 3, 2020 23:43
Copy link
Contributor

@janedegtiareva janedegtiareva left a 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 {
Copy link
Contributor

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!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@janedegtiareva
Copy link
Contributor

janedegtiareva commented Aug 3, 2020

Looks like there are test failures to address

@vgrichina
Copy link
Contributor Author

Looks like there are test failures to address

looks like these were just lint failures, fixed now

@vgrichina vgrichina merged commit 6a5795f into master Aug 4, 2020
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