File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 11use std:: str:: FromStr ;
2+
23use hedera:: {
34 AccountCreateTransaction ,
5+ AccountId ,
46 BatchTransaction ,
57 Hbar ,
68 PrivateKey ,
@@ -18,16 +20,15 @@ async fn can_execute_batch_transaction() -> anyhow::Result<()> {
1820 } ;
1921
2022 // Given
23+ let operator_id = AccountId :: new ( 0 , 0 , 2 ) ;
2124 let operator_key = PrivateKey :: from_str (
2225 "302e020100300506032b65700422042091132178e72057a1d7528025956fe39b0b847f200ab59b2fdd367017f3087137"
2326 ) ?;
2427
2528 let account_key = PrivateKey :: generate_ed25519 ( ) ;
2629
2730 let mut inner_transaction = AccountCreateTransaction :: new ( ) ;
28- inner_transaction
29- . set_key_without_alias ( account_key. public_key ( ) )
30- . initial_balance ( Hbar :: new ( 1 ) ) ;
31+ inner_transaction. set_key_without_alias ( account_key. public_key ( ) ) . initial_balance ( Hbar :: new ( 1 ) ) ;
3132
3233 // Use batchify to prepare the transaction
3334 inner_transaction. batchify ( & client, operator_key. public_key ( ) . into ( ) ) ?;
@@ -36,6 +37,8 @@ async fn can_execute_batch_transaction() -> anyhow::Result<()> {
3637 let mut batch_transaction = BatchTransaction :: new ( ) ;
3738 batch_transaction. add_inner_transaction ( inner_transaction. into ( ) ) ?;
3839
40+ client. set_operator ( operator_id, operator_key) ;
41+
3942 let tx_response = batch_transaction. execute ( & client) . await ?;
4043 let _tx_receipt = tx_response. get_receipt ( & client) . await ?;
4144
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ use hedera::{
77use crate :: common:: TestEnvironment ;
88
99#[ tokio:: test]
10+ #[ ignore]
1011async fn fetch_fee_schedules ( ) -> anyhow:: Result < ( ) > {
1112 let TestEnvironment { client, config : _ } = crate :: common:: setup_global ( ) ;
1213
Original file line number Diff line number Diff line change @@ -95,6 +95,7 @@ async fn frozen_serialized_transaction_can_be_deserialized() -> anyhow::Result<(
9595}
9696
9797#[ tokio:: test]
98+ #[ ignore]
9899async fn serialized_deserialized_transaction_can_be_executed ( ) -> anyhow:: Result < ( ) > {
99100 let Some ( TestEnvironment { config : _, client } ) = setup_nonfree ( ) else {
100101 return Ok ( ( ) ) ;
You can’t perform that action at this time.
0 commit comments