Skip to content
This repository was archived by the owner on Apr 9, 2024. It is now read-only.

feat(rpc): add get generic transaction and generic block interface #62

Merged
merged 6 commits into from
Jul 21, 2021

Conversation

KaoImin
Copy link

@KaoImin KaoImin commented Jul 19, 2021

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #

Which docs this PR relation:

Ref #

Which toolchain this PR adaption:

No Breaking Change

Special notes for your reviewer:

@KaoImin KaoImin requested a review from rev-chaos July 19, 2021 10:15
let udt_amount = InnerAmount {
value: self.get_udt_amount(is_input, cell_data.raw_data()),
udt_hash: cell.type_().to_opt().map(|s| s.calc_script_hash().unpack()),
status: Status::Unconstrained,
Copy link
Contributor

Choose a reason for hiding this comment

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

for cheque, status should be fleeting

Copy link
Contributor

Choose a reason for hiding this comment

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

for other script, udt status should be locked

Copy link
Author

Choose a reason for hiding this comment

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

Why the udt status is locked except cheque?

Copy link
Contributor

Choose a reason for hiding this comment

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

because when collecting udt inputs, mercury will not use other script, so these udt behave like locked

@KaoImin KaoImin merged commit 3b9d866 into main Jul 21, 2021
@KaoImin KaoImin deleted the generic-tx branch July 21, 2021 03:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants