HomePhabricator

[ecash-herald] Patch axios syntax bug in getNextStakingReward

Description

[ecash-herald] Patch axios syntax bug in getNextStakingReward

Summary: Axios reply returns expected shape in data. We check this, but then get {address, scriptHex} from the raw response and not the data --- so we can never get it.

Test Plan: I created a script and checked the console.log to confirm. We could test this function, but we need to test the mock cache and some other things. I found this while converting herald to typescript, imo the test can wait for that conversion.

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Subscribers: Fabien

Differential Revision: https://reviews.bitcoinabc.org/D17057

Details

Provenance
bytesofmanAuthored on Fri, Nov 1, 12:54
bytesofmanPushed on Fri, Nov 1, 13:38
Reviewer
Restricted Project
Differential Revision
D17057: [ecash-herald] Patch axios syntax bug in getNextStakingReward
Parents
rABCcd1d35645a2b: [Cashtab] Lint GoogleAnalytics.js
Branches
Unknown
Tags
Unknown