File tree 2 files changed +5
-4
lines changed
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -724,15 +724,16 @@ async def sync_price_store(
724
724
lamports ,
725
725
)
726
726
727
+ if not (await account_exists (self .rpc_endpoint , buffer_account )):
728
+ instructions .append (create_buffer_instruction )
729
+
727
730
initialize_publisher_config_instruction = initialize_publisher_config (
728
731
self .price_store_key ,
729
732
publisher ,
730
733
authority .public_key ,
731
734
buffer_account ,
732
735
)
733
736
734
- instructions .extend (
735
- [create_buffer_instruction , initialize_publisher_config_instruction ]
736
- )
737
+ instructions .append (initialize_publisher_config_instruction )
737
738
738
739
return (instructions , [authority ])
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ known_local_folder = ["program_admin"]
9
9
authors = [
" Thomaz <[email protected] >" ]
10
10
description = " Syncs products and publishers of the Pyth program"
11
11
name = " program-admin"
12
- version = " 0.1.5 "
12
+ version = " 0.1.6 "
13
13
14
14
[tool .poetry .dependencies ]
15
15
click = " ^8.1.0"
You can’t perform that action at this time.
0 commit comments