Serverless hub does not correctly handle block ranges when dealing with multi-network bots.
Summary
Fixes 2 bugs in Serverless hub to correctly store network block ranges for multi-network bot instances.
Details
We have not encountered this in prod as block ranges get also saved from single-network bot instances, but this could become an issue when adding new bots that have multiple networks not covered by other bots in the same spoke call.
Testing
Check a box to describe how you tested these changes and list the steps for reviewers to test.
[ ] Ran end-to-end test, running the code as in production
[x] New unit tests created
[ ] Existing tests adequate, no new tests required
Motivation
Serverless hub does not correctly handle block ranges when dealing with multi-network bots.
Summary
Fixes 2 bugs in Serverless hub to correctly store network block ranges for multi-network bot instances.
Details
We have not encountered this in prod as block ranges get also saved from single-network bot instances, but this could become an issue when adding new bots that have multiple networks not covered by other bots in the same spoke call.
Testing
Check a box to describe how you tested these changes and list the steps for reviewers to test.
Issue(s)
Fixes https://linear.app/uma/issue/UMA-2373/fix-serverless-hub-block-numbers-for-multiple-network-bots