https://github.com/lastmjs/test-ic-boa-async
https://github.com/lastmjs/test-ic-boa-async
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/lastmjs/test-ic-boa-async
- Owner: lastmjs
- License: unlicense
- Created: 2022-01-22T15:31:18.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-23T08:33:45.000Z (over 3 years ago)
- Last Synced: 2025-01-19T22:50:23.268Z (5 months ago)
- Language: Rust
- Size: 10.7 KB
- Stars: 0
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# test-ic-boa-async
This repository is a small reproducible example of a fundamental issue with boa and the Internet Computer's futures implementation.
The canister code is found in `canisters/boa/src/lib.rs`. There are comments explaining the problem.
To test your solution simply start an IC replica and then run `./test.sh` from a terminal. You may need to run `chmod +x test.sh` to enable executing `test.sh` as a script.
Running `test.sh` will simply deploy the canister locally and call the `rand_bytes` update function. By default the function should return the string `"1,2,3"`. You will need to follow the comments to enable the code that is broken.
If you can get the broken code to work, then you are a hero. It's as simple as that.