From a7ab15b8ffa0d5950dc736d3b2db98a6845e9de5 Mon Sep 17 00:00:00 2001 From: atticusofsparta Date: Thu, 14 Dec 2023 02:14:30 -0600 Subject: [PATCH] fix(test): remove strict owner-only strategy --- src/actions/write/transfer.test.ts | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/src/actions/write/transfer.test.ts b/src/actions/write/transfer.test.ts index c1c1d21..da859e6 100644 --- a/src/actions/write/transfer.test.ts +++ b/src/actions/write/transfer.test.ts @@ -95,20 +95,21 @@ describe('transferTokens', () => { expect(result.message).toEqual('Invalid token transfer'); }); - it('should throw if not contract owner', async () => { - const initState = { - ...baselineAntState, - balances: { [''.padEnd(43, '1')]: 1 }, - }; - const result = await transferTokens(initState, { - caller: ''.padEnd(43, '1'), - input: { - function: 'transfer', - target: ''.padEnd(43, '2'), - }, - }).catch((e) => e); - expect(result.message).toEqual(NON_CONTRACT_OWNER_MESSAGE); - }); + // taken out due to UCM not being the owner. Need to allow anyone with a balance to transfer ownership - might be a good idea to change the ownership strategy. + // it('should throw if not contract owner', async () => { + // const initState = { + // ...baselineAntState, + // balances: { [''.padEnd(43, '1')]: 1 }, + // }; + // const result = await transferTokens(initState, { + // caller: ''.padEnd(43, '1'), + // input: { + // function: 'transfer', + // target: ''.padEnd(43, '2'), + // }, + // }).catch((e) => e); + // expect(result.message).toEqual(NON_CONTRACT_OWNER_MESSAGE); + // }); it('should transfer ownership', async () => { const result = (await transferTokens(baselineAntState, {