File tree Expand file tree Collapse file tree 4 files changed +8
-7
lines changed
Expand file tree Collapse file tree 4 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 66 branches : [ main ]
77
88env :
9- SOLANA_VERSION : 1.10.29
10- SOLANA_DOCKER_IMAGE_HASH : 78900501ccd1ade1bf088fa0830c46bc6095c6799469ff9b335e1f02d957e53a
9+ SOLANA_VERSION : 1.14.7 # Using 1.14.x to have sbf instead of bpf. bpf does not work anymore.
10+ SOLANA_DOCKER_IMAGE_HASH : 9130b4a26ec00c4ba99c023da98c06abb0dba2904c990af7770928e0f7dfd2d5
1111 DOCKER_HUB : docker.io
1212 DOCKER_USER : ${{ secrets.DOCKER_IO_USER }}
1313 IS_RELEASE : ${{
Original file line number Diff line number Diff line change @@ -9,13 +9,13 @@ publish = false
99bindgen = " 0.60.1"
1010
1111[dependencies ]
12- solana-program = " =1.10.29 "
12+ solana-program = " =1.13.3 "
1313bytemuck = " 1.11.0"
1414thiserror = " 1.0"
1515
1616[dev-dependencies ]
17- solana-program-test = " =1.10.29 "
18- solana-sdk = " =1.10.29 "
17+ solana-program-test = " =1.13.3 "
18+ solana-sdk = " =1.13.3 "
1919tokio = " 1.14.1"
2020
2121[features ]
Original file line number Diff line number Diff line change 11use std:: mem:: size_of;
2+ use std:: path:: Path ;
23
34use bytemuck:: {
45 bytes_of,
@@ -14,6 +15,7 @@ use solana_program::rent::Rent;
1415use solana_program:: system_instruction;
1516use solana_program_test:: {
1617 processor,
18+ read_file,
1719 BanksClient ,
1820 BanksClientError ,
1921 ProgramTest ,
Original file line number Diff line number Diff line change @@ -78,8 +78,7 @@ def get_account_size(acc_address):
7878 """
7979 PublicKey (acc_address )
8080 solana_client = Client ("http://localhost:8899" )
81- data = solana_client .get_account_info (PublicKey (acc_address ), encoding = 'base64' )['result' ]['value' ]['data' ][0 ]
82- data = base64 .b64decode (data )
81+ data = solana_client .get_account_info (PublicKey (acc_address ), encoding = 'base64' ).value .data
8382 return len (data )
8483
8584
You can’t perform that action at this time.
0 commit comments