Back to Fuels Ts

Advanced Example

apps/docs/src/guide/testing/advanced-example.md

0.103.0816 B
Original Source
<script setup> import { data } from '../../versions.data' const { forc } = data const url = `https://docs.fuel.network/docs/forc/commands/forc_test/` </script>

Advanced Example

A more complex example showcasing genesis block state configuration with walletsConfig and deployment of multiple contracts is shown below.

<<< @./snippets/launching-a-test-node.ts#advanced-example{ts:line-numbers}

Summary

  1. All points listed in the basic example apply here as well.
  2. Multiple wallets were generated with highly-specific coins and messages.
  3. It's possible to specify the wallet to be used for contract deployment via walletIndex.
  4. The test contract can be deployed with all the options available for real contract deployment.