Skip to content

Conversation

@sentientforest
Copy link
Contributor

By default, updateTokenClass() augments the existing authority list. The overrideAuthorities = true flag must be passed to remove an existing authority or authorities from the list.

Fix updateTokenClass() call to behave as described in the preceeding comment.

ref
https://github.com/GalaChain/sdk/blob/b5a6db2ac8fbff6d29d5a7cec786e464e08a696a/chain-api/src/types/TokenClass.ts#L284-L286

By default, updateTokenClass() augments the existing authority
list. The overrideAuthorities = true flag must be passed to remove
an existing authority or authorities from the list.

Fix updateTokenClass() call to behave as described in the
preceeding comment.

ref
https://github.com/GalaChain/sdk/blob/b5a6db2ac8fbff6d29d5a7cec786e464e08a696a/chain-api/src/types/TokenClass.ts#L284-L286
sentientforest added a commit to sentientforest/galachain-sdk that referenced this pull request Dec 18, 2025
Outdated comment describes `overrideAuthorities` boolean as
not yet implemented, inspection of code shows it is in fact
used:

ref:
https://github.com/GalaChain/sdk/blob/b5a6db2ac8fbff6d29d5a7cec786e464e08a696a/chain-api/src/types/TokenClass.ts#L284-L286

related:
GalaChain/launchpad#45
@sentientforest sentientforest merged commit 2630a85 into GalaChain:main Dec 18, 2025
1 check passed
Jehosephat added a commit to GalaChain/sdk that referenced this pull request Dec 18, 2025
Outdated comment describes `overrideAuthorities` boolean as
not yet implemented, inspection of code shows it is in fact
used:

ref:
https://github.com/GalaChain/sdk/blob/b5a6db2ac8fbff6d29d5a7cec786e464e08a696a/chain-api/src/types/TokenClass.ts#L284-L286

related:
GalaChain/launchpad#45

Co-authored-by: Jehosephat <jeganhouse@gala.games>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants