Skip to content

Commit

Permalink
chore: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
fospring committed Jun 23, 2024
1 parent 5f5896b commit 4931403
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/src/gen/adder.rs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
// No content here, it's to be generated on build. Here to allow cargofmt to work.
// No content here, it's to be generated on build. Here to allow cargofmt to work.
2 changes: 1 addition & 1 deletion workspaces/src/network/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ fn overwrite_genesis(home_dir: impl AsRef<Path>) -> Result<()> {
.unwrap_or_default(),
)
.unwrap_or_default();
let register_amount = 1_000_000_000_000_000_0000_000_000_000_u128;
let register_amount = 10_000_000_000_000_000_000_000_000_000_u128;
total_supply += register_amount;
config.insert(
"total_supply".to_string(),
Expand Down
6 changes: 3 additions & 3 deletions workspaces/src/network/sandbox.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ impl Sandbox {
}
}

pub(crate) fn register_signer(&self) -> Result<InMemorySigner> {
pub(crate) fn registrar_signer(&self) -> Result<InMemorySigner> {
match &self.server.validator_key {
ValidatorKey::HomeDir(home_dir) => {
let path = home_dir.join("registrar.json");
Expand Down Expand Up @@ -140,7 +140,7 @@ impl TopLevelAccountCreator for Sandbox {
id: AccountId,
sk: SecretKey,
) -> Result<Execution<Account>> {
let root_signer = self.register_signer()?;
let root_signer = self.registrar_signer()?;
let outcome = self
.client()
.create_account(&root_signer, &id, sk.public_key(), DEFAULT_DEPOSIT)
Expand All @@ -160,7 +160,7 @@ impl TopLevelAccountCreator for Sandbox {
sk: SecretKey,
wasm: &[u8],
) -> Result<Execution<Contract>> {
let root_signer = self.register_signer()?;
let root_signer = self.registrar_signer()?;
let outcome = self
.client()
.create_account_and_deploy(
Expand Down

0 comments on commit 4931403

Please sign in to comment.