@@ -430,7 +430,7 @@ export async function getTransaction<ReturnFormat extends DataFormat>(
430430 return isNullish ( response )
431431 ? response
432432 : formatTransaction ( response , returnFormat , {
433- transactionSchema : web3Context . config . customTransactionSchema as CustomTransactionSchema ,
433+ transactionSchema : web3Context . config . customTransactionSchema as unknown as CustomTransactionSchema ,
434434 fillInputAndData : true ,
435435 } ) ;
436436}
@@ -450,7 +450,7 @@ export async function getPendingTransactions<ReturnFormat extends DataFormat>(
450450 transaction as unknown as Transaction ,
451451 returnFormat ?? web3Context . defaultReturnFormat ,
452452 {
453- transactionSchema : web3Context . config . customTransactionSchema as CustomTransactionSchema ,
453+ transactionSchema : web3Context . config . customTransactionSchema as unknown as CustomTransactionSchema ,
454454 fillInputAndData : true ,
455455 } ,
456456 ) ,
@@ -491,7 +491,7 @@ export async function getTransactionFromBlock<ReturnFormat extends DataFormat>(
491491 return isNullish ( response )
492492 ? response
493493 : formatTransaction ( response , returnFormat ?? web3Context . defaultReturnFormat , {
494- transactionSchema : web3Context . config . customTransactionSchema as CustomTransactionSchema ,
494+ transactionSchema : web3Context . config . customTransactionSchema as unknown as CustomTransactionSchema ,
495495 fillInputAndData : true ,
496496 } ) ;
497497}
@@ -611,7 +611,7 @@ export function sendTransaction<
611611 } ,
612612 ETH_DATA_FORMAT ,
613613 {
614- transactionSchema : web3Context . config . customTransactionSchema as CustomTransactionSchema ,
614+ transactionSchema : web3Context . config . customTransactionSchema as unknown as CustomTransactionSchema ,
615615 } ,
616616 ) ;
617617
@@ -855,7 +855,7 @@ export async function signTransaction<ReturnFormat extends DataFormat>(
855855 const response = await ethRpcMethods . signTransaction (
856856 web3Context . requestManager ,
857857 formatTransaction ( transaction , ETH_DATA_FORMAT , {
858- transactionSchema : web3Context . config . customTransactionSchema as CustomTransactionSchema ,
858+ transactionSchema : web3Context . config . customTransactionSchema as unknown as CustomTransactionSchema ,
859859 } ) ,
860860 ) ;
861861 // Some clients only return the encoded signed transaction (e.g. Ganache)
@@ -871,7 +871,7 @@ export async function signTransaction<ReturnFormat extends DataFormat>(
871871 returnFormat ,
872872 ) ,
873873 tx : formatTransaction ( ( response as SignedTransactionInfoAPI ) . tx , returnFormat , {
874- transactionSchema : web3Context . config . customTransactionSchema as CustomTransactionSchema ,
874+ transactionSchema : web3Context . config . customTransactionSchema as unknown as CustomTransactionSchema ,
875875 fillInputAndData : true ,
876876 } ) ,
877877 } ;
@@ -896,7 +896,7 @@ export async function call<ReturnFormat extends DataFormat>(
896896 const response = await ethRpcMethods . call (
897897 web3Context . requestManager ,
898898 formatTransaction ( transaction , ETH_DATA_FORMAT , {
899- transactionSchema : web3Context . config . customTransactionSchema ,
899+ transactionSchema : web3Context . config . customTransactionSchema as unknown as CustomTransactionSchema ,
900900 } ) ,
901901 blockNumberFormatted ,
902902 ) ;
@@ -916,7 +916,7 @@ export async function estimateGas<ReturnFormat extends DataFormat>(
916916 returnFormat : ReturnFormat ,
917917) {
918918 const transactionFormatted = formatTransaction ( transaction , ETH_DATA_FORMAT , {
919- transactionSchema : web3Context . config . customTransactionSchema ,
919+ transactionSchema : web3Context . config . customTransactionSchema as unknown as CustomTransactionSchema ,
920920 } ) ;
921921 const blockNumberFormatted = isBlockTag ( blockNumber as string )
922922 ? ( blockNumber as BlockTag )
@@ -1089,7 +1089,7 @@ export async function createAccessList<ReturnFormat extends DataFormat>(
10891089 const response = ( await ethRpcMethods . createAccessList (
10901090 web3Context . requestManager ,
10911091 formatTransaction ( transaction , ETH_DATA_FORMAT , {
1092- transactionSchema : web3Context . config . customTransactionSchema ,
1092+ transactionSchema : web3Context . config . customTransactionSchema as unknown as CustomTransactionSchema ,
10931093 } ) ,
10941094 blockNumberFormatted ,
10951095 ) ) as unknown as AccessListResult ;
0 commit comments