Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: fix amount on tests
Browse files Browse the repository at this point in the history
luizstacio committed Feb 17, 2023
1 parent 00912c5 commit 54d95bf
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -21,6 +21,7 @@
"prettier:format": "prettier --write packages",
"services:run": "make services-run",
"services:clean": "make services-clean",
"services:restart": "run-s services:clean services:run",
"changeset:publish": "changeset publish --no-git-tag",
"changeset:version-with-docs": "ts-node ./scripts/changeset-version-with-docs",
"changeset:next": "ts-node ./scripts/changeset-next",
4 changes: 2 additions & 2 deletions packages/fuel-gauge/src/doc-examples.test.ts
Original file line number Diff line number Diff line change
@@ -411,14 +411,14 @@ it('can create a predicate and use', async () => {
loggedTypes: [],
};
const predicate = new Predicate(predicateTriple, AbiInputs);
const amountToPredicate = 1_000_000;
const amountToPredicate = 100_000;
const amountToReceiver = 100;
const initialPredicateBalance = await predicate.getBalance();
// #endregion

// #region typedoc:Predicate-triple-transfer
const response = await wallet1.transfer(predicate.address, amountToPredicate);
await response.wait();
await response.waitForResult();
const predicateBalance = await predicate.getBalance();

// assert that predicate address now has the expected amount to predicate
1 change: 0 additions & 1 deletion packages/predicate/src/predicate.test.ts
Original file line number Diff line number Diff line change
@@ -3,7 +3,6 @@ import { hexlify } from '@ethersproject/bytes';
import { Account } from '@fuel-ts/account';
import { Address } from '@fuel-ts/address';
import { bn } from '@fuel-ts/math';
import type { Resource } from '@fuel-ts/providers';
import { ScriptTransactionRequest, CoinStatus } from '@fuel-ts/providers';
import type { InputCoin } from '@fuel-ts/transactions';

0 comments on commit 54d95bf

Please sign in to comment.