File tree Expand file tree Collapse file tree 2 files changed +0
-11
lines changed
packages/synapse-core/src/mocks/jsonrpc Expand file tree Collapse file tree 2 files changed +0
-11
lines changed Original file line number Diff line number Diff line change @@ -768,7 +768,6 @@ export const presets = {
768768 999999n , // finalSettledEpoch
769769 'Terminated rail settlement' , // note
770770 ] ,
771- NETWORK_FEE : ( ) => parseUnits ( '0.0013' , 18 ) , // 0.0013 FIL
772771 } ,
773772 } as RequiredDeep < JSONRPCOptions > ,
774773}
Original file line number Diff line number Diff line change @@ -30,22 +30,12 @@ export interface PaymentsOptions {
3030 settleTerminatedRailWithoutValidation ?: (
3131 args : AbiToType < settleTerminatedRailWithoutValidation [ 'inputs' ] >
3232 ) => AbiToType < settleTerminatedRailWithoutValidation [ 'outputs' ] >
33- NETWORK_FEE ?: ( ) => bigint
3433}
3534
3635/**
3736 * Handle payments contract calls
3837 */
3938export function paymentsCallHandler ( data : Hex , options : JSONRPCOptions ) : Hex {
40- // Check for NETWORK_FEE constant (function selector: 0x9be5c024) - constants are accessed as functions but may not be in ABI
41- if ( data . startsWith ( '0x9be5c024' ) ) {
42- if ( ! options . payments ?. NETWORK_FEE ) {
43- throw new Error ( 'Payments: NETWORK_FEE is not defined' )
44- }
45- const fee = options . payments . NETWORK_FEE ( )
46- return encodeAbiParameters ( [ { type : 'uint256' } ] , [ fee ] )
47- }
48-
4939 const { functionName, args } = decodeFunctionData ( {
5040 abi : Abis . payments ,
5141 data : data as Hex ,
You can’t perform that action at this time.
0 commit comments