Skip to content

Commit

Permalink
chore: harmonise naming style in Move stdlibs (#75)
Browse files Browse the repository at this point in the history
- harmonise naming style of Move-stdlibs, here: SubstrateStdlib
- Note: There is one minor cargo fmt correction that has been added - too small for a separate PR 😊
  • Loading branch information
neutrinoks authored Apr 24, 2024
1 parent 8bca46d commit b158ed5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
6 changes: 3 additions & 3 deletions language/move-stdlib/build_stdlid_with_smove.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ popd

# Build the substrate-stdlib bundle
pushd .
rm -rf substrate-stdlib
git clone https://github.com/eigerco/substrate-stdlib.git
cd substrate-stdlib
rm -rf SubstrateStdlib
git clone https://github.com/eigerco/substrate-stdlib.git SubstrateStdlib
cd SubstrateStdlib
smove bundle
popd
2 changes: 1 addition & 1 deletion language/move-stdlib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ pub fn move_stdlib_bundle() -> &'static [u8] {
/// Provides a precompiled bundle of substrate-stdlib bytecode modules.
#[cfg(feature = "stdlib-bytecode")]
pub fn substrate_stdlib_bundle() -> &'static [u8] {
include_bytes!("../substrate-stdlib/build/substrate-stdlib/bundles/substrate-stdlib.mvb")
include_bytes!("../SubstrateStdlib/build/SubstrateStdlib/bundles/SubstrateStdlib.mvb")
}
5 changes: 1 addition & 4 deletions language/tools/move-cli/src/sandbox/commands/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,7 @@ fn determine_package_nest_depth(
Ok(r) => r,
_ => continue,
};
depth = std::cmp::max(
depth,
stripped_path.components().count() + 1,
);
depth = std::cmp::max(depth, stripped_path.components().count() + 1);
}
Ok(depth)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.0.0"

[dependencies]
MoveStdlib = { git = "https://github.com/eigerco/move-stdlib", rev = "main" }
substrate-stdlib = { git = "https://github.com/eigerco/substrate-stdlib.git", rev = "main" }
SubstrateStdlib = { git = "https://github.com/eigerco/substrate-stdlib.git", rev = "main" }

[addresses]
std = "0x1"
Expand Down

0 comments on commit b158ed5

Please sign in to comment.