File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -1246,7 +1246,7 @@ export type ExampleNativeTokenTransfers = {
1246
1246
}
1247
1247
} ,
1248
1248
{
1249
- "name" : "lut " ,
1249
+ "name" : "LUT " ,
1250
1250
"type" : {
1251
1251
"kind" : "struct" ,
1252
1252
"fields" : [
@@ -3178,7 +3178,7 @@ export const IDL: ExampleNativeTokenTransfers = {
3178
3178
}
3179
3179
} ,
3180
3180
{
3181
- "name" : "lut " ,
3181
+ "name" : "LUT " ,
3182
3182
"type" : {
3183
3183
"kind" : "struct" ,
3184
3184
"fields" : [
Original file line number Diff line number Diff line change @@ -1048,6 +1048,10 @@ export namespace NTT {
1048
1048
if ( major < 2 ) return null ;
1049
1049
1050
1050
pdas = pdas ?? NTT . pdas ( program . programId ) ;
1051
+ // @ts -ignore
1052
+ // NOTE: lut is 'LUT' in the IDL, but 'lut' in the generated code
1053
+ // It needs to be upper-cased in the IDL to compute the anchor
1054
+ // account discriminator correctly
1051
1055
const lut = await program . account . lut . fetchNullable ( pdas . lutAccount ( ) ) ;
1052
1056
if ( ! lut ) return null ;
1053
1057
You can’t perform that action at this time.
0 commit comments