Skip to content

Commit

Permalink
remove explicit account sync after object mutating ops (transfer, mov…
Browse files Browse the repository at this point in the history
…e call etc) (MystenLabs#1607)
  • Loading branch information
patrickkuo authored Apr 27, 2022
1 parent 9174343 commit 15beffa
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions sui/src/wallet_commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -508,21 +508,6 @@ impl WalletCommands {
WalletCommandResult::CreateExampleNFT(object_read)
}
});
// Sync all managed addresses
// This is wasteful because not all addresses might be modified
// but will be removed as part of https://github.com/MystenLabs/sui/issues/1045
match self {
WalletCommands::Publish { .. }
| WalletCommands::Call { .. }
| WalletCommands::Transfer { .. }
| WalletCommands::SplitCoin { .. }
| WalletCommands::MergeCoin { .. } => {
for address in context.config.accounts.clone() {
context.gateway.sync_account_state(address).await?;
}
}
_ => {}
}
ret
}
}
Expand Down

0 comments on commit 15beffa

Please sign in to comment.