Skip to content

Commit

Permalink
Merge branch 'lf/fix/dont-allow-send-to-asset-address' of github.com:…
Browse files Browse the repository at this point in the history
…FuelLabs/fuels-wallet into lf/fix/dont-allow-send-to-asset-address
  • Loading branch information
arthurgeron committed Nov 18, 2024
2 parents d0f7865 + 29e078e commit 74f3e0e
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion packages/app/playwright/e2e/SendTransaction.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ test.describe('SendTransaction', () => {
});

// @TODO: re-enable after we fix who assets cache logic
test.skip('Send transaction in other Asset', async () => {
test('Send transaction in other Asset', async () => {
const receiverWallet = Wallet.generate({
provider,
});
Expand Down Expand Up @@ -357,4 +357,14 @@ test.describe('SendTransaction', () => {
// Wait for transaction to be confirmed
await hasText(page, 'success');
});

test('Send transaction to an asset address should fail', async () => {
const assetAddress = provider.getBaseAssetId();
await visit(page, '/send');
await getInputByName(page, 'address').fill(assetAddress);
await getInputByName(page, 'amount').fill('0.001');
await expect(
page.getByText("You can't send to Asset address")
).toBeVisible();
});
});

0 comments on commit 74f3e0e

Please sign in to comment.