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

Stylus: No implementation for floating point operation #2710

Open
ImJeremyHe opened this issue Sep 30, 2024 · 1 comment
Open

Stylus: No implementation for floating point operation #2710

ImJeremyHe opened this issue Sep 30, 2024 · 1 comment

Comments

@ImJeremyHe
Copy link
Contributor

ImJeremyHe commented Sep 30, 2024

Describe the bug
Nitro: 3.12
I am writing our own stylus contract and running a nitro testnode for testing.

cargo stylus check -e http://localhost:8547 --wasm-file ./target/wasm32-unknown-unknown/release/espresso_crypto_helper.wasm --verbose

I got the error:

nitro-testnode-sequencer-1      | Caused by:
nitro-testnode-sequencer-1      |     No implementation for floating point operation ConvertIntOp(F64, I64, false) in user

It looks like our stylus contract is too compllicated to be deployed because it requires something unimplemented. I think the floating point operation has been implemented in the replay binary by using the soft-float wasm binary. Wondering if there is any solutions for us to call other WASMs or stylus contracts? Or maybe combine several WASMs into a single stylus contract? And if these operations are universal, can we support them in the stylus's native execution environment?

Expected behavior
cargo stylus check works

@joshuacolvin0
Copy link
Member

This is a known issue, floating point is currently not supported in Stylus. We are exploring different options, but nothing has been settled yet.

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

No branches or pull requests

2 participants