@@ -430,7 +430,7 @@ export async function getTransaction<ReturnFormat extends DataFormat>(
430
430
return isNullish ( response )
431
431
? response
432
432
: formatTransaction ( response , returnFormat , {
433
- transactionSchema : web3Context . config . customTransactionSchema as CustomTransactionSchema ,
433
+ transactionSchema : web3Context . config . customTransactionSchema as unknown as CustomTransactionSchema ,
434
434
fillInputAndData : true ,
435
435
} ) ;
436
436
}
@@ -450,7 +450,7 @@ export async function getPendingTransactions<ReturnFormat extends DataFormat>(
450
450
transaction as unknown as Transaction ,
451
451
returnFormat ?? web3Context . defaultReturnFormat ,
452
452
{
453
- transactionSchema : web3Context . config . customTransactionSchema as CustomTransactionSchema ,
453
+ transactionSchema : web3Context . config . customTransactionSchema as unknown as CustomTransactionSchema ,
454
454
fillInputAndData : true ,
455
455
} ,
456
456
) ,
@@ -491,7 +491,7 @@ export async function getTransactionFromBlock<ReturnFormat extends DataFormat>(
491
491
return isNullish ( response )
492
492
? response
493
493
: formatTransaction ( response , returnFormat ?? web3Context . defaultReturnFormat , {
494
- transactionSchema : web3Context . config . customTransactionSchema as CustomTransactionSchema ,
494
+ transactionSchema : web3Context . config . customTransactionSchema as unknown as CustomTransactionSchema ,
495
495
fillInputAndData : true ,
496
496
} ) ;
497
497
}
@@ -611,7 +611,7 @@ export function sendTransaction<
611
611
} ,
612
612
ETH_DATA_FORMAT ,
613
613
{
614
- transactionSchema : web3Context . config . customTransactionSchema as CustomTransactionSchema ,
614
+ transactionSchema : web3Context . config . customTransactionSchema as unknown as CustomTransactionSchema ,
615
615
} ,
616
616
) ;
617
617
@@ -855,7 +855,7 @@ export async function signTransaction<ReturnFormat extends DataFormat>(
855
855
const response = await ethRpcMethods . signTransaction (
856
856
web3Context . requestManager ,
857
857
formatTransaction ( transaction , ETH_DATA_FORMAT , {
858
- transactionSchema : web3Context . config . customTransactionSchema as CustomTransactionSchema ,
858
+ transactionSchema : web3Context . config . customTransactionSchema as unknown as CustomTransactionSchema ,
859
859
} ) ,
860
860
) ;
861
861
// Some clients only return the encoded signed transaction (e.g. Ganache)
@@ -871,7 +871,7 @@ export async function signTransaction<ReturnFormat extends DataFormat>(
871
871
returnFormat ,
872
872
) ,
873
873
tx : formatTransaction ( ( response as SignedTransactionInfoAPI ) . tx , returnFormat , {
874
- transactionSchema : web3Context . config . customTransactionSchema as CustomTransactionSchema ,
874
+ transactionSchema : web3Context . config . customTransactionSchema as unknown as CustomTransactionSchema ,
875
875
fillInputAndData : true ,
876
876
} ) ,
877
877
} ;
@@ -896,7 +896,7 @@ export async function call<ReturnFormat extends DataFormat>(
896
896
const response = await ethRpcMethods . call (
897
897
web3Context . requestManager ,
898
898
formatTransaction ( transaction , ETH_DATA_FORMAT , {
899
- transactionSchema : web3Context . config . customTransactionSchema ,
899
+ transactionSchema : web3Context . config . customTransactionSchema as unknown as CustomTransactionSchema ,
900
900
} ) ,
901
901
blockNumberFormatted ,
902
902
) ;
@@ -916,7 +916,7 @@ export async function estimateGas<ReturnFormat extends DataFormat>(
916
916
returnFormat : ReturnFormat ,
917
917
) {
918
918
const transactionFormatted = formatTransaction ( transaction , ETH_DATA_FORMAT , {
919
- transactionSchema : web3Context . config . customTransactionSchema ,
919
+ transactionSchema : web3Context . config . customTransactionSchema as unknown as CustomTransactionSchema ,
920
920
} ) ;
921
921
const blockNumberFormatted = isBlockTag ( blockNumber as string )
922
922
? ( blockNumber as BlockTag )
@@ -1089,7 +1089,7 @@ export async function createAccessList<ReturnFormat extends DataFormat>(
1089
1089
const response = ( await ethRpcMethods . createAccessList (
1090
1090
web3Context . requestManager ,
1091
1091
formatTransaction ( transaction , ETH_DATA_FORMAT , {
1092
- transactionSchema : web3Context . config . customTransactionSchema ,
1092
+ transactionSchema : web3Context . config . customTransactionSchema as unknown as CustomTransactionSchema ,
1093
1093
} ) ,
1094
1094
blockNumberFormatted ,
1095
1095
) ) as unknown as AccessListResult ;
0 commit comments