entropyxyz / sdk

Official JavaScript SDK for Entropy blockchain.
GNU Affero General Public License v3.0
7 stars 0 forks source link

register function return a value #255

Closed benschac closed 7 months ago

benschac commented 8 months ago
    const tx = await entropy.register({
      address: selectedUser.address,
      keyVisibility: 'Permissioned',
      freeTx: false,
    })

would be helpful if register(params: RegistrationParams): Promise<undefined>; was register(params: RegistrationParams): Promise<boolean>;

so developers do not need make a second api call to isRegistered: (address: Address) => Promise<boolean>; after initially registering a user.

frankiebee commented 7 months ago

closed by #264