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

Docs: fix UFix64, Fix64 and Address in types tables #1073

Merged
merged 2 commits into from Mar 22, 2022

Conversation

marcoroth
Copy link
Contributor

It seems that the UFix64 and Fix64 type arguments are not correctly
represented if you pass them as arguments with the t.UFix256 or
t.Fix256 type respectively.

After a quick look in types.js it seems that the library doesn't even
know about those types. Passing in t.UFix64 and t.Fix64 as a type
seems to work just fine.

It also seems that an Address typed argument needs to be passed in
with the t.Address type instead of the t.String type as suggested
in the docs.

This PR additionally fixes the formatting/styling for the path type
at the very end of the table in the docs.

It seems that the `UFix64` and `Fix64` type arguments are not correctly
represented if you pass them as arguments with the `t.UFix256` or
`t.Fix256` type respectively.

After a quick look in `types.js` it seems that the library doesn't even
know about those types. Passing in `t.UFix64` and `t.Fix64` as a type
seems to work just fine.

https://github.com/onflow/fcl-js/blob/master/packages/types/src/types.js

It also seems that an `Address` typed argument needs to be passed in
with the `t.Address` type instead of the `t.String` type as suggested
in the docs.

This PR additionally fixes the formatting/styling for the `path` type
at the very end of the table in the docs.
Copy link
Member

@chasefleming chasefleming left a comment

Choose a reason for hiding this comment

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

Thanks for catching this!

@chasefleming chasefleming merged commit 4a4ee8c into onflow:master Mar 22, 2022
@marcoroth marcoroth deleted the fix-types-table branch March 22, 2022 18:57
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.

None yet

3 participants