Skip to content

Commit

Permalink
Replacing hardcoded addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
arboleya committed Sep 19, 2023
1 parent 43f6d6a commit 974c936
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/fuel-gauge/src/contract.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@ describe('Contract', () => {
}

// Set custom provider to contract instance
const customProvider = await ProviderCustom.connect('http://127.0.0.1:4000/graphql');
const customProvider = await ProviderCustom.connect(FUEL_NETWORK_URL);
contract.account = Wallet.fromAddress(externalWallet.address, customProvider);
contract.provider = customProvider;

Expand Down
10 changes: 5 additions & 5 deletions packages/wallet/src/transfer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { seedTestWallet, generateTestWallet } from './test-utils';

describe('Wallet', () => {
it('can transfer a single type of coin to a single destination', async () => {
const provider = await Provider.create('http://127.0.0.1:4000/graphql');
const provider = await Provider.create(FUEL_NETWORK_URL);
const sender = await generateTestWallet(provider, [[100, BaseAssetId]]);
const receiver = await generateTestWallet(provider);

Expand All @@ -25,7 +25,7 @@ describe('Wallet', () => {
});

it('can transfer with custom TX Params', async () => {
const provider = await Provider.create('http://127.0.0.1:4000/graphql');
const provider = await Provider.create(FUEL_NETWORK_URL);

const sender = await generateTestWallet(provider, [[100, BaseAssetId]]);
const receiver = await generateTestWallet(provider);
Expand All @@ -50,7 +50,7 @@ describe('Wallet', () => {
});

it('can exclude IDs when getResourcesToSpend is called', async () => {
const provider = await Provider.create('http://127.0.0.1:4000/graphql');
const provider = await Provider.create(FUEL_NETWORK_URL);

const assetIdA = '0x0101010101010101010101010101010101010101010101010101010101010101';
const assetIdB = '0x0202020202020202020202020202020202020202020202020202020202020202';
Expand All @@ -70,7 +70,7 @@ describe('Wallet', () => {
});

it('can transfer multiple types of coins to multiple destinations', async () => {
const provider = await Provider.create('http://127.0.0.1:4000/graphql');
const provider = await Provider.create(FUEL_NETWORK_URL);

const assetIdA = '0x0101010101010101010101010101010101010101010101010101010101010101';
const assetIdB = '0x0202020202020202020202020202020202020202020202020202020202020202';
Expand Down Expand Up @@ -122,7 +122,7 @@ describe('Wallet', () => {
});

it('can withdraw an amount of base asset', async () => {
const provider = await Provider.create('http://127.0.0.1:4000/graphql');
const provider = await Provider.create(FUEL_NETWORK_URL);

const sender = await generateTestWallet(provider, [[100, BaseAssetId]]);
const recipient = Address.fromB256(
Expand Down

0 comments on commit 974c936

Please sign in to comment.