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

[BUG] Unexpected behavior when running optimize #154

Open
andrexbass opened this issue Aug 11, 2023 · 0 comments
Open

[BUG] Unexpected behavior when running optimize #154

andrexbass opened this issue Aug 11, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@andrexbass
Copy link

andrexbass commented Aug 11, 2023

Issue description

Can't run optimize, error to compile lib bnum 0.7.0 dependent on cosmwasm-std

Steps to reproduce the issue

terrain contract:optimize my-dapp
...
Average cache write 0.000 s
Average cache read miss 0.000 s
Average cache read hit 0.000 s
Failed distributed compilations 0
Cache location Local disk: "/root/.cache/sccache"
Cache size 0 bytes
Max cache size 10 GiB
Building contract in /code ...
Compiling bnum v0.7.0
error[E0599]: no method named cast_mut found for raw pointer *const [u8; 8] in the current scope
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/bnum-0.7.0/src/bint/endian.rs:77:47
|
77 | let ptr = uninit.as_ptr().cast_mut() as *mut u8;
| ^^^^^^^^ help: there is an associated function with a similar name: as_mut

Tools and operating system versions

Terrain 0.8.0
Rustc 1.71.1
Node v16.16.0

@andrexbass andrexbass added the bug Something isn't working label Aug 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant