Skip to content

Commit

Permalink
refactor(sozo-migrate): set migrator account block to pending (#555)
Browse files Browse the repository at this point in the history
  • Loading branch information
kariy authored Jun 25, 2023
1 parent 4ae03cc commit b13cf6c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/sozo/src/commands/migrate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ impl MigrateArgs {

let account = {
let provider = self.starknet.provider(env_metadata.as_ref())?;
let account = self.account.account(provider, env_metadata.as_ref()).await?;
let mut account = self.account.account(provider, env_metadata.as_ref()).await?;
account.set_block_id(BlockId::Tag(BlockTag::Pending));

let address = account.address();

config.ui().print(format!("\nMigration account: {address:#x}\n"));
Expand Down

0 comments on commit b13cf6c

Please sign in to comment.