Skip to content

Commit e4c453c

Browse files
sirtimidclaude
andcommitted
fix(evm-wallet): update wallet_send test to handle formatted tx result
The wallet_send tool now returns formatted output (UserOp hash, explorer link) instead of a raw hex hash. Update assertion accordingly. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 452c2b3 commit e4c453c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

packages/evm-wallet-experiment/test/integration/openclaw-plugin.integration.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,9 +315,10 @@ exec "${process.execPath}" "${ocapCliEntrypoint}" "$@"
315315
value: '0x1',
316316
});
317317

318-
expect(result.content[0]?.text).toMatch(/^0x[\da-f]{64}$/iu);
318+
const text = result.content[0]?.text ?? '';
319+
expect(text).not.toContain('Error');
320+
expect(text).toMatch(/0x[\da-f]{64}/iu);
319321
expect(observedRawTx).toMatch(/^0x[\da-f]+$/iu);
320322
expect(observedRawTx?.length).toBeGreaterThan(10);
321-
expect(result.content[0]?.text).not.toContain('toLowerCase');
322323
});
323324
});

0 commit comments

Comments
 (0)