Wait for Finalized
@@ -189,7 +189,7 @@ fn deploy_contract_and_wait(code_file_name: &str, abi: &str, constructor_params:
if let Ok(s) = state {
println!("{} : {:?}", s.message_id.to_hex_string(), s.message_state);
if //s.message_state == MessageProcessingStatus::Preliminary ||
- s.message_state == MessageProcessingStatus::Proposed ||
+ //s.message_state == MessageProcessingStatus::Proposed ||
s.message_state == MessageProcessingStatus::Finalized {
tr_id = Some(s.message_id.clone());
break;
@@ -224,7 +224,7 @@ fn deploy_contract_and_wait(code_file_name: &str, abi: &str, constructor_params:
.expect("Error unwrap returned Message");
println!("{} : {:?}", s.id().to_hex_string(), s.status());
if //s.status() == MessageProcessingStatus::Preliminary ||
- s.status() == MessageProcessingStatus::Proposed ||
+ //s.status() == MessageProcessingStatus::Proposed ||
s.status() == MessageProcessingStatus::Finalized {
tr_id = Some(s.id().clone());
return;
@@ -238,7 +238,7 @@ fn deploy_contract_and_wait(code_file_name: &str, abi: &str, constructor_params:
if let Ok(s) = state {
println!("{} : {:?}", s.message_id.to_hex_string(), s.message_state);
if //s.message_state == MessageProcessingStatus::Preliminary ||
- s.message_state == MessageProcessingStatus::Proposed ||
+ //s.message_state == MessageProcessingStatus::Proposed ||
s.message_state == MessageProcessingStatus::Finalized {
tr_id = Some(s.message_id.clone());
break;
@@ -264,7 +264,7 @@ fn deploy_contract_and_wait(code_file_name: &str, abi: &str, constructor_params:
if let Ok(s) = state {
println!("{} : {:?}", s.message_id.to_hex_string(), s.message_state);
if //s.message_state == MessageProcessingStatus::Preliminary ||
- s.message_state == MessageProcessingStatus::Proposed ||
+ //s.message_state == MessageProcessingStatus::Proposed ||
s.message_state == MessageProcessingStatus::Finalized {
tr_id = Some(s.message_id.clone());
break;
@@ -316,7 +316,7 @@ fn call_contract_and_wait(address: AccountId, func: &str, input: &str, abi: &str
if let Ok(s) = state {
//println!("next state: {:?}", s);
if //s.message_state == MessageProcessingStatus::Preliminary ||
- s.message_state == MessageProcessingStatus::Proposed ||
+ //s.message_state == MessageProcessingStatus::Proposed ||
s.message_state == MessageProcessingStatus::Finalized {
tr_id = Some(s.message_id.clone());
break;
