#Contract build failing

19 messages · Page 1 of 1 (latest)

mystic storm
#

soroban contract build command is failing. Maybe due to latest soroban-sdk release 20.0.0?

❯ soroban contract build
cargo rustc --manifest-path=Cargo.toml --crate-type=cdylib --target=wasm32-unknown-unknown --release
   Compiling soroban-did-contract v0.1.0 (/home/miguelnietoa/kommit/ospo/soroban-did-contract)
error[E0599]: no method named `bump` found for struct `Instance` in the current scope
  --> src/contract.rs:41:14
   |
39 | /         e.storage()
40 | |             .instance()
41 | |             .bump(LEDGERS_THRESHOLD, LEDGERS_TO_EXTEND);
   | |             -^^^^ method not found in `Instance`
   | |_____________|
   | 

warning: use of deprecated associated function `soroban_sdk::String::from_slice`: use from_str
  --> src/did_uri.rs:14:28
   |
14 |     let hash_str = String::from_slice(e, "#");
   |                            ^^^^^^^^^^
   |
   = note: `#[warn(deprecated)]` on by default
ember temple
#

yeah, probably

#

we're in the middle of release now

mystic storm
#

So, is it normal for it to fail during the release process (?

#

where deps are not pinned. I guess is the same reason...

ember temple
#

no, it will keep failing because there were breaking change (hopefully, for the last time until full release)

#

sorry for not being clear

#

bump has been renamed to extend_ttl, strings now use bytes slices (b"#") as they're not really validated utf-8 strings

mystic storm
#

Got it, thank you

#

@ember temple I've solved the breaking changes in the code.

But the contract wasm can't be deployed... 😦 so is there any solution while the next Soroban version is officially released?

ember temple
#

yes, this is the part where 'in the middle of release' matters. future/testnets should be updated soon - stay tuned

mystic storm
#

oh, sorry, I thought future/testnets would be updated next week and not immediately

#

thank u @ember temple 🙌

#

I thought they would be updated next week because of the dates that are in the blog post:

ember temple
#

ugh, not sure, probably futurenet will be reset sooner

mystic storm
#

great!

visual silo
#

You can still use the older SDK by specifying soroban_sdk = "=20.0.0-rc2.2"