Skip to content
This repository has been archived by the owner on Apr 8, 2020. It is now read-only.

Use near-lib with as-pect and add mocked backed #104

Open
willemneal opened this issue Jan 7, 2020 · 1 comment
Open

Use near-lib with as-pect and add mocked backed #104

willemneal opened this issue Jan 7, 2020 · 1 comment
Assignees

Comments

@willemneal
Copy link
Contributor

Ideally we can use as-pect with near-lib. Currently the as-pect tests we use are to test encoding/decoding and mock the imported functions. If we add near-lib we can do the compiling and testing all in one step instead of two.

One issue that might arise is that currently as-pect binaries contain exported functions that use floating point numbers. Is it the case that any floats in a binary case issues with the nearcore?

The other feature that will be useful in NEARStudio and in general is to properly mock near-lib such that a connection to a node isn't required. Or I should say a "real" node. Perhaps in the web context it's another web worker.

@willemneal willemneal self-assigned this Jan 7, 2020
@bowenwang1996
Copy link
Contributor

You cannot have floats in the binary.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants