-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into ps/chore/refactor-get-transaction-cost
- Loading branch information
Showing
11 changed files
with
82 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"create-fuels": patch | ||
--- | ||
|
||
chore: replace `create-fuels` hardcoded values with constants |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@fuel-ts/contract": patch | ||
--- | ||
|
||
fix: `launchTestNode` multiple contracts type inference |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { launchTestNode } from 'fuels/test-utils'; | ||
|
||
import type { AdvancedLoggingAbi, CallTestContractAbi } from '../test/typegen'; | ||
import { AdvancedLoggingAbi__factory, CallTestContractAbi__factory } from '../test/typegen'; | ||
import AdvancedLoggingBytecode from '../test/typegen/contracts/AdvancedLoggingAbi.hex'; | ||
import CallTestContractBytecode from '../test/typegen/contracts/CallTestContractAbi.hex'; | ||
|
||
/** | ||
* @group node | ||
* @group browser | ||
*/ | ||
describe('type level tests for launchTestNode', () => { | ||
test('infers types correctly', async () => { | ||
using launched = await launchTestNode({ | ||
contractsConfigs: [ | ||
{ deployer: AdvancedLoggingAbi__factory, bytecode: AdvancedLoggingBytecode }, | ||
{ deployer: CallTestContractAbi__factory, bytecode: CallTestContractBytecode }, | ||
{ deployer: AdvancedLoggingAbi__factory, bytecode: AdvancedLoggingBytecode }, | ||
], | ||
}); | ||
const { | ||
contracts: [c1, c2, c3], | ||
} = launched; | ||
|
||
expectTypeOf(c1).toMatchTypeOf<AdvancedLoggingAbi>(); | ||
expectTypeOf(c2).toMatchTypeOf<CallTestContractAbi>(); | ||
expectTypeOf(c3).toMatchTypeOf<AdvancedLoggingAbi>(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters