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

After a bit of digging, it turned out that [the authorization is demanded on this step](https://github.com/pinknetworkx/atomicassets-contract/blob/master/src/atomicassets.cpp#L1297): #3

Closed
Pok9thai opened this issue Sep 25, 2021 · 0 comments · Fixed by #4
Assignees
Labels
good first issue Good for newcomers

Comments

@Pok9thai
Copy link
Owner

After a bit of digging, it turned out that the authorization is demanded on this step:

        to_assets.emplace(asset_itr->ram_payer, [&](auto &_asset) {
            _asset.asset_id = asset_itr->asset_id;
            _asset.collection_name = asset_itr->collection_name;
            _asset.schema_name = asset_itr->schema_name;
            _asset.template_id = asset_itr->template_id;
            _asset.ram_payer = asset_itr->ram_payer;
            _asset.backed_tokens = asset_itr->backed_tokens;
            _asset.immutable_serialized_data = asset_itr->immutable_serialized_data;
            _asset.mutable_serialized_data = asset_itr->mutable_serialized_data;
        });

assetitr->ram_payer is the account that minted the asset, and its authorization is required for each transfer on my local blockchain. Obviously, this does not happen on the main chain. Why? What's the difference? How to set up a local blockchain so it behaves the same as the main one?

Originally posted by @imb590 in pinknetworkx/atomicassets-contract#42 (comment)

@Pok9thai Pok9thai self-assigned this Sep 25, 2021
@Pok9thai Pok9thai linked a pull request Oct 1, 2021 that will close this issue
@Pok9thai Pok9thai closed this as completed Oct 1, 2021
@Pok9thai Pok9thai removed their assignment Nov 1, 2021
@Pok9thai Pok9thai added the good first issue Good for newcomers label Nov 1, 2021
@Pok9thai Pok9thai self-assigned this Nov 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant