Skip to content

Commit

Permalink
chore(enum helpers): use kinobi generated enum helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
shotgunofdeath committed Feb 28, 2024
1 parent 401743a commit 5430a12
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ ASSETp3DinZKfiAyvdQG16YWWLJ2X3ZKjg9zku7n1sZD.json
assetwo5JUM4WA59A1E3gFJBYvo8Ds8Rv32jyc3ASEe.json
coreeNT3nkXDgYv28X1S7hi1PTW2oEZKc2dbZqbdbew.json
CoREzp6dAdLVRKf3EM5tWrsXM2jQwRFeu5uhzsAyjYXL.json
.idea
12 changes: 5 additions & 7 deletions clients/js/test/addAuthority.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import {
create,
fetchAsset,
fetchAssetWithPlugins,
plugin,
authority,
} from '../src';
import { createUmi } from './_setup';

Expand Down Expand Up @@ -42,19 +44,15 @@ test('it can add an authority to a plugin', async (t) => {

await addPlugin(umi, {
assetAddress: assetAddress.publicKey,
plugin: {
__kind: 'Freeze',
fields: [{ frozen: false }],
},
plugin: plugin('Freeze', [{ frozen: false }]),
})
.append(
addAuthority(umi, {
assetAddress: assetAddress.publicKey,
pluginType: PluginType.Freeze,
newAuthority: {
__kind: 'Pubkey',
newAuthority: authority('Pubkey', {
address: delegateAddress.publicKey,
},
}),
})
)
.sendAndConfirm(umi);
Expand Down

0 comments on commit 5430a12

Please sign in to comment.