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

Lock fungible tokens on another's behalf with valid lock allowance #362

Open
sentientforest opened this issue Sep 10, 2024 · 0 comments
Open

Comments

@sentientforest
Copy link
Contributor

LockToken does not currently support locking fungible tokens unless the calling user is the owner.

https://github.com/GalaChain/sdk/blob/main/chaincode/src/locks/lockTokens.ts#L99C1-L104C6

    // for initial support of fungible tokens, require owner to be the caller.
    if (tokenInstanceKey.isFungible()) {
      throw new NotImplementedError("LockToken is not supported for fungible tokens", {
        instanceKey: tokenInstanceKey.toStringKey()
      });
    }

This issue tracks testing and adding support for this functionality.

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

No branches or pull requests

1 participant