Skip to content

Conversation

@sevanspowell
Copy link
Contributor

ADP-915

  • Provide support for the decimals field in offchain-metadata-tools.
  • Add a test to demonstrate the existing behaviour that sequence numbers present in unknown properties are validated.

@sevanspowell sevanspowell requested a review from rvl May 11, 2021 04:21
@sevanspowell sevanspowell self-assigned this May 11, 2021
@sevanspowell sevanspowell force-pushed the feature/ADP-915-decimals-minimal branch from 58c6e49 to dda3809 Compare May 11, 2021 04:21
Copy link
Contributor

@rvl rvl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@sevanspowell sevanspowell force-pushed the feature/ADP-915-decimals-minimal branch from 12358b2 to ba54e39 Compare May 11, 2021 08:14
- Provide support for the decimals field in offchain-metadata-tools.
- Add a test to demonstrate the existing behaviour that sequence
  numbers present in unknown properties are validated.
@sevanspowell sevanspowell force-pushed the feature/ADP-915-decimals-minimal branch from ba54e39 to 83866da Compare May 12, 2021 03:03
@sevanspowell
Copy link
Contributor Author

bors r+

iohk-bors bot added a commit that referenced this pull request May 13, 2021
23: Support for decimals r=sevanspowell a=sevanspowell

ADP-915
- Provide support for the decimals field in offchain-metadata-tools.
- Add a test to demonstrate the _**existing**_ behaviour that sequence numbers present in unknown properties are validated.

Co-authored-by: Samuel Evans-Powell <mail@sevanspowell.net>
@iohk-bors
Copy link

iohk-bors bot commented May 13, 2021

Canceled.

@sevanspowell sevanspowell merged commit 74fc04d into master May 13, 2021
@iohk-bors iohk-bors bot deleted the feature/ADP-915-decimals-minimal branch May 13, 2021 03:55
@gitmachtl
Copy link
Contributor

gitmachtl commented May 13, 2021

255 decimals? The first version had a maximum amount of 19 decimals, whats the decision behind going up to 255 decimals?

@rvl
Copy link
Contributor

rvl commented May 17, 2021

Hi @gitmachtl, thanks for the question. It was chosen as a maximum which basically means "no maximum."
255 is an absurdly large number of decimals. The max decimals of the first version was just chosen because 10^19 ≈ 2^64. So pretty arbitrary, and also an impractically high number of decimals. The limit could always be relaxed if someone comes up with a good reason.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants