@@ -66,6 +66,7 @@ import {
6666 SignatureObjectSchema ,
6767} from './schemas.js' ;
6868import {
69+ type CustomTransactionSchema ,
6970 SendSignedTransactionEvents ,
7071 SendSignedTransactionOptions ,
7172 SendTransactionEvents ,
@@ -429,7 +430,7 @@ export async function getTransaction<ReturnFormat extends DataFormat>(
429430 return isNullish ( response )
430431 ? response
431432 : formatTransaction ( response , returnFormat , {
432- transactionSchema : web3Context . config . customTransactionSchema ,
433+ transactionSchema : web3Context . config . customTransactionSchema as CustomTransactionSchema ,
433434 fillInputAndData : true ,
434435 } ) ;
435436}
@@ -449,7 +450,7 @@ export async function getPendingTransactions<ReturnFormat extends DataFormat>(
449450 transaction as unknown as Transaction ,
450451 returnFormat ?? web3Context . defaultReturnFormat ,
451452 {
452- transactionSchema : web3Context . config . customTransactionSchema ,
453+ transactionSchema : web3Context . config . customTransactionSchema as CustomTransactionSchema ,
453454 fillInputAndData : true ,
454455 } ,
455456 ) ,
@@ -490,7 +491,7 @@ export async function getTransactionFromBlock<ReturnFormat extends DataFormat>(
490491 return isNullish ( response )
491492 ? response
492493 : formatTransaction ( response , returnFormat ?? web3Context . defaultReturnFormat , {
493- transactionSchema : web3Context . config . customTransactionSchema ,
494+ transactionSchema : web3Context . config . customTransactionSchema as CustomTransactionSchema ,
494495 fillInputAndData : true ,
495496 } ) ;
496497}
@@ -610,7 +611,7 @@ export function sendTransaction<
610611 } ,
611612 ETH_DATA_FORMAT ,
612613 {
613- transactionSchema : web3Context . config . customTransactionSchema ,
614+ transactionSchema : web3Context . config . customTransactionSchema as CustomTransactionSchema ,
614615 } ,
615616 ) ;
616617
@@ -854,7 +855,7 @@ export async function signTransaction<ReturnFormat extends DataFormat>(
854855 const response = await ethRpcMethods . signTransaction (
855856 web3Context . requestManager ,
856857 formatTransaction ( transaction , ETH_DATA_FORMAT , {
857- transactionSchema : web3Context . config . customTransactionSchema ,
858+ transactionSchema : web3Context . config . customTransactionSchema as CustomTransactionSchema ,
858859 } ) ,
859860 ) ;
860861 // Some clients only return the encoded signed transaction (e.g. Ganache)
@@ -870,7 +871,7 @@ export async function signTransaction<ReturnFormat extends DataFormat>(
870871 returnFormat ,
871872 ) ,
872873 tx : formatTransaction ( ( response as SignedTransactionInfoAPI ) . tx , returnFormat , {
873- transactionSchema : web3Context . config . customTransactionSchema ,
874+ transactionSchema : web3Context . config . customTransactionSchema as CustomTransactionSchema ,
874875 fillInputAndData : true ,
875876 } ) ,
876877 } ;
0 commit comments