Description
ContractService.getTotalRaisedOnChain(poolId) in src/contract/contract.service.ts parses a bigint (or bigint-like) value out of a simulated contract call. contract.service.spec.ts's describe('getTotalRaisedOnChain', ...) block only exercises the "returns 0n on RPC error" branch, never the branch where simulateTransaction succeeds and a real value is returned and converted to bigint.
Deliverables
Description
ContractService.getTotalRaisedOnChain(poolId)insrc/contract/contract.service.tsparses abigint(or bigint-like) value out of a simulated contract call.contract.service.spec.ts'sdescribe('getTotalRaisedOnChain', ...)block only exercises the "returns 0n on RPC error" branch, never the branch wheresimulateTransactionsucceeds and a real value is returned and converted tobigint.Deliverables
service['rpcServer'].simulateTransactionto resolve with a mockretval, and assertsgetTotalRaisedOnChainreturns the expectedbigint