Convert hydrated bounty to BN

This commit is contained in:
Will O'Beirne 2019-02-19 13:58:18 -05:00
parent 29ce4c08c6
commit 4755949496
No known key found for this signature in database
GPG Key ID: 44C190DB5DEAF9F6
2 changed files with 1507 additions and 0 deletions

1501
admin.logs Normal file

File diff suppressed because it is too large Load Diff

View File

@ -145,6 +145,12 @@ export function massageSerializedState(state: AppState) {
(state.proposal.detail.funded as any) as string,
16,
);
if (state.proposal.detail.rfp && state.proposal.detail.rfp.bounty) {
state.proposal.detail.rfp.bounty = new BN(
(state.proposal.detail.rfp.bounty as any) as string,
16,
);
}
}
// proposals
state.proposal.page.items = state.proposal.page.items.map(p => ({