• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

cowprotocol / cow-sdk / #1909

08 Jul 2025 01:56PM UTC coverage: 73.831% (-0.2%) from 74.0%
#1909

push

web-flow
fix(bridge): remove post hook duplicates (#372)

607 of 871 branches covered (69.69%)

Branch coverage included in aggregate %.

4 of 4 new or added lines in 2 files covered. (100.0%)

1 existing line in 1 file now uncovered.

1272 of 1674 relevant lines covered (75.99%)

18.52 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

20.0
/src/hooks/utils.ts
1
import { latest } from '@cowprotocol/app-data'
2
import { HOOK_DAPP_BRIDGE_PROVIDER_PREFIX } from '../bridging'
3

4
export function getHookMockForCostEstimation(gasLimit: number): latest.CoWHook {
5
  return {
6✔
6
    callData: '0x00',
7
    gasLimit: gasLimit.toString(),
8
    target: '0x0000000000000000000000000000000000000000',
9
    dappId: HOOK_DAPP_BRIDGE_PROVIDER_PREFIX,
10
  }
11
}
12

13
export function areHooksEqual(hookA: latest.CoWHook, hookB: latest.CoWHook): boolean {
UNCOV
14
  return hookA.callData === hookB.callData && hookA.gasLimit === hookB.gasLimit && hookA.target === hookB.target
×
15
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc