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 6
6
branches : [ main ]
7
7
8
8
env :
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
11
11
DOCKER_HUB : docker.io
12
12
DOCKER_USER : ${{ secrets.DOCKER_IO_USER }}
13
13
IS_RELEASE : ${{
Original file line number Diff line number Diff line change @@ -9,13 +9,13 @@ publish = false
9
9
bindgen = " 0.60.1"
10
10
11
11
[dependencies ]
12
- solana-program = " =1.10.29 "
12
+ solana-program = " =1.13.3 "
13
13
bytemuck = " 1.11.0"
14
14
thiserror = " 1.0"
15
15
16
16
[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 "
19
19
tokio = " 1.14.1"
20
20
21
21
[features ]
Original file line number Diff line number Diff line change 1
1
use std:: mem:: size_of;
2
+ use std:: path:: Path ;
2
3
3
4
use bytemuck:: {
4
5
bytes_of,
@@ -14,6 +15,7 @@ use solana_program::rent::Rent;
14
15
use solana_program:: system_instruction;
15
16
use solana_program_test:: {
16
17
processor,
18
+ read_file,
17
19
BanksClient ,
18
20
BanksClientError ,
19
21
ProgramTest ,
Original file line number Diff line number Diff line change @@ -78,8 +78,7 @@ def get_account_size(acc_address):
78
78
"""
79
79
PublicKey (acc_address )
80
80
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
83
82
return len (data )
84
83
85
84
You can’t perform that action at this time.
0 commit comments