From dbf7ac411927e242bcdd99d7cb102c98b875dba4 Mon Sep 17 00:00:00 2001 From: Hernando Castano Date: Thu, 19 Jan 2023 16:07:16 -0800 Subject: [PATCH] Fix delegator example --- examples/delegator/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/delegator/lib.rs b/examples/delegator/lib.rs index 074ac5cae7b..fe094f9828b 100644 --- a/examples/delegator/lib.rs +++ b/examples/delegator/lib.rs @@ -63,7 +63,7 @@ mod delegator { .endowment(total_balance / 4) .code_hash(accumulator_code_hash) .salt_bytes(salt) - .instantiate() + .try_instantiate() .unwrap_or_else(|error| { panic!( "failed at instantiating the Accumulator contract: {:?}", @@ -74,7 +74,7 @@ mod delegator { .endowment(total_balance / 4) .code_hash(adder_code_hash) .salt_bytes(salt) - .instantiate() + .try_instantiate() .unwrap_or_else(|error| { panic!("failed at instantiating the Adder contract: {:?}", error) }); @@ -82,7 +82,7 @@ mod delegator { .endowment(total_balance / 4) .code_hash(subber_code_hash) .salt_bytes(salt) - .instantiate() + .try_instantiate() .unwrap_or_else(|error| { panic!("failed at instantiating the Subber contract: {:?}", error) });