Skip to content

Commit

Permalink
Merge pull request #368 from reservoirprotocol/fix/zero-address-zero
Browse files Browse the repository at this point in the history
Fix zero address for zero chain
  • Loading branch information
pedromcunha authored Nov 12, 2024
2 parents 648118a + a52745f commit 67f2ce8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/fifty-beds-switch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@reservoir0x/relay-sdk': patch
---

Update zero address for zero chain
3 changes: 3 additions & 0 deletions packages/sdk/src/constants/address.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,15 @@ export const solDeadAddress =
export const eclipseDeadAddress =
'CrfbABN2sSvmoZLu9eDDfXpaC2nHg42R7AXbHs9eg4S9' as const
export const bitcoinDeadAddress = 'bc1q4vxn43l44h30nkluqfxd9eckf45vr2awz38lwa'
export const zeroDeadAddress = '0x03508bB71268BBA25ECaCC8F620e01866650532c'

export const getDeadAddress = (vmType?: ChainVM, chainId?: number) => {
if (vmType === 'svm') {
return chainId === 9286185 ? eclipseDeadAddress : solDeadAddress
} else if (vmType === 'bvm') {
return bitcoinDeadAddress
} else if (chainId === 543210) {
return zeroDeadAddress
} else {
return evmDeadAddress
}
Expand Down

0 comments on commit 67f2ce8

Please sign in to comment.