From 61696092f15a87b20a94a9a8e2fcf07b9a0ca185 Mon Sep 17 00:00:00 2001 From: crStiv Date: Wed, 26 Feb 2025 13:27:09 +0100 Subject: [PATCH] Update test-coin.ts --- packages/account/src/test-utils/test-coin.ts | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/packages/account/src/test-utils/test-coin.ts b/packages/account/src/test-utils/test-coin.ts index 5485aefc973..08552be036c 100644 --- a/packages/account/src/test-utils/test-coin.ts +++ b/packages/account/src/test-utils/test-coin.ts @@ -2,19 +2,18 @@ import { Coin } from '@fuel-ts/account'; import { bn, type BN } from '@fuel-ts/math'; import { getRandomB256 } from '@fuel-ts/address'; - interface TestCoinSpecs { id: string; owner: string; amount: BN; - type: number; + assetId: string; } export class TestCoin { public readonly id: string; public readonly owner: string; public readonly amount: BN; - public readonly type: number; + public readonly assetId: string; /** * A helper class to create coins for testing purposes. @@ -23,12 +22,12 @@ export class TestCoin { id = getRandomB256(), owner = getRandomB256(), amount = bn(1000000), - type = 0, + assetId = getRandomB256(), }: Partial = {}) { this.id = id; this.owner = owner; this.amount = amount; - this.type = type; + this.assetId = assetId; } /** @@ -39,7 +38,7 @@ export class TestCoin { id: this.id, owner: this.owner, amount: this.amount, - type: this.type, + assetId: this.assetId, }; }