@@ -669,7 +669,7 @@ pub fn transfer(
669
669
signer_pubkeys. is_empty ( ) ,
670
670
) ) ;
671
671
for signer_pubkey in signer_pubkeys. iter ( ) {
672
- accounts. push ( AccountMeta :: new ( * * signer_pubkey, true ) ) ;
672
+ accounts. push ( AccountMeta :: new_readonly ( * * signer_pubkey, true ) ) ;
673
673
}
674
674
675
675
Ok ( Instruction {
@@ -698,7 +698,7 @@ pub fn approve(
698
698
signer_pubkeys. is_empty ( ) ,
699
699
) ) ;
700
700
for signer_pubkey in signer_pubkeys. iter ( ) {
701
- accounts. push ( AccountMeta :: new ( * * signer_pubkey, true ) ) ;
701
+ accounts. push ( AccountMeta :: new_readonly ( * * signer_pubkey, true ) ) ;
702
702
}
703
703
704
704
Ok ( Instruction {
@@ -718,13 +718,13 @@ pub fn revoke(
718
718
let data = TokenInstruction :: Revoke . pack ( ) ;
719
719
720
720
let mut accounts = Vec :: with_capacity ( 2 + signer_pubkeys. len ( ) ) ;
721
- accounts. push ( AccountMeta :: new_readonly ( * source_pubkey, false ) ) ;
721
+ accounts. push ( AccountMeta :: new ( * source_pubkey, false ) ) ;
722
722
accounts. push ( AccountMeta :: new_readonly (
723
723
* owner_pubkey,
724
724
signer_pubkeys. is_empty ( ) ,
725
725
) ) ;
726
726
for signer_pubkey in signer_pubkeys. iter ( ) {
727
- accounts. push ( AccountMeta :: new ( * * signer_pubkey, true ) ) ;
727
+ accounts. push ( AccountMeta :: new_readonly ( * * signer_pubkey, true ) ) ;
728
728
}
729
729
730
730
Ok ( Instruction {
@@ -757,7 +757,7 @@ pub fn set_authority(
757
757
signer_pubkeys. is_empty ( ) ,
758
758
) ) ;
759
759
for signer_pubkey in signer_pubkeys. iter ( ) {
760
- accounts. push ( AccountMeta :: new ( * * signer_pubkey, true ) ) ;
760
+ accounts. push ( AccountMeta :: new_readonly ( * * signer_pubkey, true ) ) ;
761
761
}
762
762
763
763
Ok ( Instruction {
@@ -786,7 +786,7 @@ pub fn mint_to(
786
786
signer_pubkeys. is_empty ( ) ,
787
787
) ) ;
788
788
for signer_pubkey in signer_pubkeys. iter ( ) {
789
- accounts. push ( AccountMeta :: new ( * * signer_pubkey, true ) ) ;
789
+ accounts. push ( AccountMeta :: new_readonly ( * * signer_pubkey, true ) ) ;
790
790
}
791
791
792
792
Ok ( Instruction {
@@ -815,7 +815,7 @@ pub fn burn(
815
815
signer_pubkeys. is_empty ( ) ,
816
816
) ) ;
817
817
for signer_pubkey in signer_pubkeys. iter ( ) {
818
- accounts. push ( AccountMeta :: new ( * * signer_pubkey, true ) ) ;
818
+ accounts. push ( AccountMeta :: new_readonly ( * * signer_pubkey, true ) ) ;
819
819
}
820
820
821
821
Ok ( Instruction {
@@ -843,7 +843,7 @@ pub fn close_account(
843
843
signer_pubkeys. is_empty ( ) ,
844
844
) ) ;
845
845
for signer_pubkey in signer_pubkeys. iter ( ) {
846
- accounts. push ( AccountMeta :: new ( * * signer_pubkey, true ) ) ;
846
+ accounts. push ( AccountMeta :: new_readonly ( * * signer_pubkey, true ) ) ;
847
847
}
848
848
849
849
Ok ( Instruction {
@@ -871,7 +871,7 @@ pub fn freeze_account(
871
871
signer_pubkeys. is_empty ( ) ,
872
872
) ) ;
873
873
for signer_pubkey in signer_pubkeys. iter ( ) {
874
- accounts. push ( AccountMeta :: new ( * * signer_pubkey, true ) ) ;
874
+ accounts. push ( AccountMeta :: new_readonly ( * * signer_pubkey, true ) ) ;
875
875
}
876
876
877
877
Ok ( Instruction {
@@ -899,7 +899,7 @@ pub fn thaw_account(
899
899
signer_pubkeys. is_empty ( ) ,
900
900
) ) ;
901
901
for signer_pubkey in signer_pubkeys. iter ( ) {
902
- accounts. push ( AccountMeta :: new ( * * signer_pubkey, true ) ) ;
902
+ accounts. push ( AccountMeta :: new_readonly ( * * signer_pubkey, true ) ) ;
903
903
}
904
904
905
905
Ok ( Instruction {
@@ -932,7 +932,7 @@ pub fn transfer2(
932
932
signer_pubkeys. is_empty ( ) ,
933
933
) ) ;
934
934
for signer_pubkey in signer_pubkeys. iter ( ) {
935
- accounts. push ( AccountMeta :: new ( * * signer_pubkey, true ) ) ;
935
+ accounts. push ( AccountMeta :: new_readonly ( * * signer_pubkey, true ) ) ;
936
936
}
937
937
938
938
Ok ( Instruction {
@@ -965,7 +965,7 @@ pub fn approve2(
965
965
signer_pubkeys. is_empty ( ) ,
966
966
) ) ;
967
967
for signer_pubkey in signer_pubkeys. iter ( ) {
968
- accounts. push ( AccountMeta :: new ( * * signer_pubkey, true ) ) ;
968
+ accounts. push ( AccountMeta :: new_readonly ( * * signer_pubkey, true ) ) ;
969
969
}
970
970
971
971
Ok ( Instruction {
@@ -995,7 +995,7 @@ pub fn mint_to2(
995
995
signer_pubkeys. is_empty ( ) ,
996
996
) ) ;
997
997
for signer_pubkey in signer_pubkeys. iter ( ) {
998
- accounts. push ( AccountMeta :: new ( * * signer_pubkey, true ) ) ;
998
+ accounts. push ( AccountMeta :: new_readonly ( * * signer_pubkey, true ) ) ;
999
999
}
1000
1000
1001
1001
Ok ( Instruction {
@@ -1025,7 +1025,7 @@ pub fn burn2(
1025
1025
signer_pubkeys. is_empty ( ) ,
1026
1026
) ) ;
1027
1027
for signer_pubkey in signer_pubkeys. iter ( ) {
1028
- accounts. push ( AccountMeta :: new ( * * signer_pubkey, true ) ) ;
1028
+ accounts. push ( AccountMeta :: new_readonly ( * * signer_pubkey, true ) ) ;
1029
1029
}
1030
1030
1031
1031
Ok ( Instruction {
0 commit comments