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

Inconsistent API between functionCall and viewFunction. #627

Closed
mattlockyer opened this issue Jun 29, 2021 · 1 comment
Closed

Inconsistent API between functionCall and viewFunction. #627

mattlockyer opened this issue Jun 29, 2021 · 1 comment
Assignees
Labels
devx P2 Pretty important

Comments

@mattlockyer
Copy link
Contributor

mattlockyer commented Jun 29, 2021

Describe the bug
Same as title.

To Reproduce
Try viewFunction with syntax like this:

const token = await contractAccount.viewFunction({
contractId,
methodName: 'nft_token',
args: 

{ token_id, } 

})

Expected behavior
Expect them both to accept the POJO syntax e.g.

{ contractId, methodName, args, ...}

Screenshots
![image](https://user-images.githubusercontent.com/321340/123719335-22e1f780-d836-11eb-84f6-0f7f8dffd83c.png)

@mattlockyer mattlockyer added the bug Something isn't working label Jun 29, 2021
@zcstarr
Copy link

zcstarr commented Jul 10, 2021

Just going to second this, I hit the same issue. It's killer when your'e trying to figure out what's wrong, you end up rolling the dice and going to the deprecated version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devx P2 Pretty important
Development

No branches or pull requests

4 participants