Skip to content

Commit 9f8ea3e

Browse files
authored
chore: remove outdated NETWORK_FEE mock (#552)
1 parent da2e9a7 commit 9f8ea3e

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

packages/synapse-core/src/mocks/jsonrpc/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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
}

packages/synapse-core/src/mocks/jsonrpc/payments.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff 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
*/
3938
export 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,

0 commit comments

Comments
 (0)