Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fastx client] Use new client functions, and remove old logic (Part 2) #381

Merged
merged 17 commits into from
Feb 9, 2022
6 changes: 2 additions & 4 deletions fastpay/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -311,9 +311,7 @@ fn find_cached_owner_by_object_id(
.map(|acc| acc.address)
}

fn show_object_effects(order_info_resp: OrderInfoResponse) {
let order_effects = order_info_resp.signed_effects.unwrap().effects;

fn show_object_effects(order_effects: OrderEffects) {
if order_effects.status != ExecutionStatus::Success {
error!("Error publishing module: {:#?}", order_effects.status);
}
Expand Down Expand Up @@ -698,7 +696,7 @@ fn main() {
recv_timeout,
)
.await;
recipient_client_state.receive_object(&cert).await.unwrap();
recipient_client_state.sync_client_state().await.unwrap();
accounts_config.update_from_state(&recipient_client_state);
accounts_config
.write(accounts_config_path)
Expand Down
Loading