Skip to content

Commit

Permalink
Fixing changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
blockiosaurus committed Mar 11, 2024
1 parent 7f6723e commit bbee5a2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion clients/js/test/create.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ test('it can create a new asset in account state with plugins with a different u
owner: umi.identity,
updateAuthority: updateAuthority('Address', [updateAuth.publicKey]),
freeze: {
authority: { owner: true },
authority: { type: "Owner" },
frozen: false,
},
});
Expand Down
4 changes: 2 additions & 2 deletions clients/js/test/removePlugin.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ test('it can remove a plugin from an asset', async (t) => {
const umi = await createUmi();

const asset = await createAsset(umi, {
plugins: [plugin('Freeze', [{ frozen: false }])],
plugins: [{ plugin: plugin('Freeze', [{ frozen: false }]), authority: null }],
});

await assertAsset(t, umi, {
Expand All @@ -33,6 +33,6 @@ test('it can remove a plugin from an asset', async (t) => {
}).sendAndConfirm(umi);

const asset2 = await fetchAssetWithPlugins(umi, asset.publicKey);

t.is(asset2.freeze, undefined);
});
8 changes: 4 additions & 4 deletions clients/js/test/revokeAuthority.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ test('it can remove an authority from a plugin', async (t) => {
const delegateAddress = generateSigner(umi);

const asset = await createAsset(umi, {
plugins: [plugin('Freeze', [{ frozen: false }])],
plugins: [{ plugin: plugin('Freeze', [{ frozen: false }]), authority: null }],
});

await approvePluginAuthority(umi, {
Expand Down Expand Up @@ -62,7 +62,7 @@ test('it can remove the default authority from a plugin to make it immutable', a
// Given a Umi instance and a new signer.
const umi = await createUmi();
const asset = await createAsset(umi, {
plugins: [plugin('Freeze', [{ frozen: false }])],
plugins: [{ plugin: plugin('Freeze', [{ frozen: false }]), authority: null }],
});

await approvePluginAuthority(umi, {
Expand Down Expand Up @@ -90,7 +90,7 @@ test('it can remove a pubkey authority from a plugin if that pubkey is the signe
const pubkeyAuth = await generateSignerWithSol(umi);

const asset = await createAsset(umi, {
plugins: [plugin('Freeze', [{ frozen: false }])],
plugins: [{ plugin: plugin('Freeze', [{ frozen: false }]), authority: null }],
});

await approvePluginAuthority(umi, {
Expand Down Expand Up @@ -138,7 +138,7 @@ test('it cannot remove a none authority from a plugin', async (t) => {
// Given a Umi instance and a new signer.
const umi = await createUmi();
const asset = await createAsset(umi, {
plugins: [plugin('Freeze', [{ frozen: false }])],
plugins: [{ plugin: plugin('Freeze', [{ frozen: false }]), authority: null }],
});

await approvePluginAuthority(umi, {
Expand Down

0 comments on commit bbee5a2

Please sign in to comment.