File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
basics/cross-program-invocation/native/programs/lever Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ cpi = ["no-entrypoint"]
9
9
10
10
[dependencies ]
11
11
borsh = " 1.5.7"
12
- borsh-derive = " 0.10"
13
12
solana-program = " 2.0"
14
13
15
14
[lib ]
Original file line number Diff line number Diff line change 1
- use borsh:: { BorshDeserialize , BorshSerialize } ;
1
+ use borsh:: { to_vec , BorshDeserialize , BorshSerialize } ;
2
2
#[ cfg( not( feature = "no-entrypoint" ) ) ]
3
3
use solana_program:: entrypoint;
4
4
use solana_program:: {
@@ -42,7 +42,7 @@ pub fn initialize(
42
42
let user = next_account_info ( accounts_iter) ?;
43
43
let system_program = next_account_info ( accounts_iter) ?;
44
44
45
- let account_span = ( power_status . try_to_vec ( ) ? ) . len ( ) ;
45
+ let account_span = ( to_vec ( & power_status ) ) ? . len ( ) ;
46
46
let lamports_required = ( Rent :: get ( ) ?) . minimum_balance ( account_span) ;
47
47
48
48
invoke (
You can’t perform that action at this time.
0 commit comments