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

feat(rpc): build asset collection transaction #67

Merged
merged 9 commits into from
Jul 23, 2021

Conversation

bitrocks
Copy link
Contributor

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:

@bitrocks bitrocks force-pushed the build-asset-collection-transaction branch from 1dae6a3 to 68fd8c4 Compare July 23, 2021 09:12
@bitrocks bitrocks changed the title (DONT MERGE)feat(rpc): build asset collection transaction feat(rpc): build asset collection transaction Jul 23, 2021
let key_addr = Address::new(
self.net_ty,
self.get_script_by_hash(to_fixed_array(
&script.args().raw_data()[20..40],
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
&script.args().raw_data()[20..40],
&script.args().raw_data()[0..20],

) -> Result<TransactionCompletionResponse> {
let from_addresses = self.parse_from_addresses(from, udt_hash.is_some())?;
let to_address = self.parse_to_address(to, udt_hash.is_some())?;
let fee_address = parse_address(&fee_paid_by)?;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
let fee_address = parse_address(&fee_paid_by)?;
let fee_address = parse_key_address(&fee_paid_by)?;

@rev-chaos rev-chaos merged commit 0e20247 into main Jul 23, 2021
@KaoImin KaoImin deleted the build-asset-collection-transaction branch July 23, 2021 14:25
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