Skip to content
Discussion options

You must be logged in to vote

If you're using objects, like @ajaythxkur mentioned, you need the object signer. Objects are an upgrade on resource accounts, so this is recommended.

let constructor_ref = object::create_named_object(master, OBJECT_NAME);
let object_signer = object::generate_signer(&constructor_ref);
let extend_ref = object::generate_extend_ref(&constructor_ref);

move_to(&object_signer, ResourceProviders { providers: vector::empty() });
move_to(&object_signer, ObjectController { extend_ref });

If you're using resource accounts, you need the resource account signer capability.

move_to(&resource_acc_signer, ResourceProviders { providers: vector::empty() });

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@najeh012
Comment options

@kshitijc1506
Comment options

@najeh012
Comment options

@kshitijc1506
Comment options

@najeh012
Comment options

Answer selected by kshitijc1506
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants