Skip to content

Commit

Permalink
fix call as delegate
Browse files Browse the repository at this point in the history
  • Loading branch information
brenzi committed Dec 1, 2024
1 parent eaf3425 commit 467c2a6
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions packages/worker-api/src/integriteeWorker.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ describe('worker', () => {
});

// race condition so skipped
describe.only('session proxies (delegates) should work', () => {
describe.skip('session proxies (delegates) should work', () => {
it('add delegate should work', async () => {
const shard = network.shard;
const now = new Date();
Expand All @@ -234,18 +234,24 @@ describe('worker', () => {

it('call as delegate should work', async () => {
const shard = network.shard;
const localKeyring = new Keyring({ type: "sr25519", ss58Format: 42 });
const delegate = localKeyring.addFromMnemonic("secret forest ticket smooth wide mass parent reveal embark impose fiscal company", {
name: "fresh",
});
const result = await worker.trustedBalanceTransfer(
alice,
shard,
network.mrenclave,
alice.address,
charlie.address,
'5DwH48esFAmQWjaae7zvzzAbhRgS4enS7tfUPTbGr6ZFnW7R',
1100000000000,
"My test note",
{ delegate: charlie }
{ delegate: delegate }
);
console.log('delegated balance transfer result', JSON.stringify(result));
expect(result).toBeDefined();
const status = worker.createType('TrustedOperationStatus', result.status);
expect(status.isInSidechainBlock).toBeTruthy();
});
});
// race condition so skipped
Expand Down

0 comments on commit 467c2a6

Please sign in to comment.