mirror of
https://github.com/datahaven-xyz/datahaven
synced 2026-05-24 09:50:01 +00:00
This PR solves an issue where the solochain relayer was fatally crashing because the DataHaven chain initialized with an empty `RewardsRegistryAddress` parameter. This caused all initial reward merkle root update messages to target the zero address before the parameter could be properly set by the launch command of the CLI. When the relayer tried to call the update function on the zero address (which isn't a valid contract), the transactions reverted and crashed the relayer. The band-aid fix implemented is to set the actual `RewardsRegistry` contract address as the default value for the `RewardsRegistryAddress` parameter (since we know it as it's consistent between our CLI runs). This ensures initial messages have a valid target contract address from startup, preventing the fatal crashes. Again, this is a temporary fix until we implement a more robust solution for parameter initialization, since it won't hold up if any changes happen to our contracts. --------- Co-authored-by: Gonza Montiel <gon.montiel@gmail.com> |
||
|---|---|---|
| .. | ||
| handlers | ||
| index.ts | ||