HomePhabricator

rpc: Accept scientific notation for monetary amounts in JSON
9cc91523dbecUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

rpc: Accept scientific notation for monetary amounts in JSON

Add a function ParseFixedPoint that parses numbers according
to the JSON number specification and returns a 64-bit integer.

Then this in AmountFromValue, rather than ParseMoney.

Also add lots of tests (thanks to @jonasschnelli for some of them).

Fixes issue #6297.

Details

Provenance
Wladimir J. van der Laan <laanwj@gmail.com>Authored on Jul 6 2015, 08:49
deadalnixPushed on May 14 2017, 22:04
Parents
rABCd0a10c195917: Merge pull request #6329
Branches
Unknown
Tags
Unknown

Event Timeline

Wladimir J. van der Laan <laanwj@gmail.com> committed rABC9cc91523dbec: rpc: Accept scientific notation for monetary amounts in JSON (authored by Wladimir J. van der Laan <laanwj@gmail.com>).Jul 10 2015, 13:43