ChainMovers / suibase

Sui development environment and cookbook.
https://suibase.io
Apache License 2.0
35 stars 6 forks source link

"localnet regen" fails building binaries on Mysten Labs 'main' branch #87

Closed mario4tier closed 7 months ago

mario4tier commented 7 months ago

Issue reported by @FrankC01:

With latest Sui repo pull cargo build --locked --bin sui --bin sui-faucet works fine but localnet regen is throwing error:

   Compiling sui-json-rpc-types v0.0.0 (/Users/fastfrank/sui/crates/sui-json-rpc-types)
error[E0599]: no function or associated item named `random_for_testing_only` found for struct `SuiAddress` in the current scope
   --> crates/sui-json-rpc-types/src/sui_event.rs:163:33
    |
163 |             sender: SuiAddress::random_for_testing_only(),
    |                                 ^^^^^^^^^^^^^^^^^^^^^^^ function or associated item not found in `SuiAddress`
mario4tier commented 7 months ago

Solution was to replace "-p sui -p sui-faucet" with what you found to be working.

Thanks for reporting this with pretty much the solution :smile: