Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rosetta scaffold inverted operations #5632

Merged
merged 3 commits into from
Aug 12, 2020
Merged

Conversation

bkase
Copy link
Member

@bkase bkase commented Aug 12, 2020

Operation parsing with reasons for failure for payments and a simple
unit test to verify true-positives (debugging was necessary so some
assurance true-negatives work too).

Operation parsing with reasons for failure for payments and a simple
unit test to verify true-positives (debugging was necessary so some
assurance true-negatives work too).
@bkase bkase changed the title have separate abstract round numbers for each of step and wrap Rosetta scaffold inversted operations Aug 12, 2020

module Reason = struct
type t =
| Length_off
Copy link
Member

Choose a reason for hiding this comment

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

Nit: Length_mismatch might be clearer

let token_id_of_account (account : Account_identifier.t) =
let module Decoder = Amount_of.Token_id.T (Result) in
Decoder.decode account.metadata
|> Result.map ~f:(Option.value ~default:Unsigned.UInt64.one)
Copy link
Member

Choose a reason for hiding this comment

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

use Token_id.default?

@bkase bkase added ci-build-me Add this label to trigger a circle+buildkite build for this branch ready-to-merge-into-develop labels Aug 12, 2020
@bkase bkase changed the title Rosetta scaffold inversted operations Rosetta scaffold inverted operations Aug 12, 2020
Base automatically changed from rosetta-scaffold-derive to develop August 12, 2020 21:45
@netlify
Copy link

netlify bot commented Aug 12, 2020

Preview:

Built with commit 489d898

https://deploy-preview-5632--o1website2.netlify.app

@mergify mergify bot merged commit 16d39ea into develop Aug 12, 2020
@mergify mergify bot deleted the rosetta-scaffold-inversion branch August 12, 2020 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci-build-me Add this label to trigger a circle+buildkite build for this branch ready-to-merge-into-develop
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants