diff --git a/e2e-polybft/e2e/bridge_test.go b/e2e-polybft/e2e/bridge_test.go index 404d7a7b07..3193614fc4 100644 --- a/e2e-polybft/e2e/bridge_test.go +++ b/e2e-polybft/e2e/bridge_test.go @@ -65,6 +65,7 @@ func TestE2E_Bridge_Transfers(t *testing.T) { } cluster := framework.NewTestCluster(t, 5, + framework.WithTestRewardToken(), framework.WithNumBlockConfirmations(numBlockConfirmations), framework.WithEpochSize(epochSize)) defer cluster.Stop() @@ -1152,7 +1153,7 @@ func TestE2E_Bridge_ChildChainMintableTokensTransfer(t *testing.T) { func TestE2E_CheckpointSubmission(t *testing.T) { // spin up a cluster with epoch size set to 5 blocks - cluster := framework.NewTestCluster(t, 5, framework.WithEpochSize(5)) + cluster := framework.NewTestCluster(t, 5, framework.WithEpochSize(5), framework.WithTestRewardToken()) defer cluster.Stop() // initialize tx relayer used to query CheckpointManager smart contract @@ -1206,9 +1207,15 @@ func TestE2E_Bridge_ChangeVotingPower(t *testing.T) { epochSize = 5 ) + minter, err := wallet.GenerateKey() + require.NoError(t, err) + cluster := framework.NewTestCluster(t, 5, framework.WithEpochSize(epochSize), - framework.WithEpochReward(1000000)) + framework.WithEpochReward(1000000), + framework.WithNativeTokenConfig(fmt.Sprintf(nativeTokenMintableTestCfg, minter.Address())), + framework.WithPremine(types.Address(minter.Address())), + ) defer cluster.Stop() // load polybft config @@ -1335,6 +1342,7 @@ func TestE2E_Bridge_Transfers_AccessLists(t *testing.T) { cluster := framework.NewTestCluster(t, 5, framework.WithNumBlockConfirmations(0), framework.WithEpochSize(epochSize), + framework.WithTestRewardToken(), framework.WithBridgeAllowListAdmin(adminAddr), framework.WithBridgeBlockListAdmin(adminAddr), framework.WithSecretsCallback(func(a []types.Address, tcc *framework.TestClusterConfig) { @@ -1546,6 +1554,7 @@ func TestE2E_Bridge_Transfers_WithRootTrackerPollInterval(t *testing.T) { framework.WithEpochSize(epochSize), framework.WithNumBlockConfirmations(numBlockConfirmations), framework.WithRootTrackerPollInterval(rootPollInterval), + framework.WithTestRewardToken(), ) defer cluster.Stop() diff --git a/e2e-polybft/e2e/burn_contract_test.go b/e2e-polybft/e2e/burn_contract_test.go index 9a592397ea..a95e101eaf 100644 --- a/e2e-polybft/e2e/burn_contract_test.go +++ b/e2e-polybft/e2e/burn_contract_test.go @@ -20,6 +20,7 @@ func TestE2E_BurnContract_Deployed(t *testing.T) { destinationAddr := types.Address(destinationKey.Address()) cluster := framework.NewTestCluster(t, 5, + framework.WithTestRewardToken(), framework.WithBurnContract(&polybft.BurnContractInfo{ Address: contractAddr, DestinationAddress: destinationAddr, diff --git a/e2e-polybft/e2e/consensus_test.go b/e2e-polybft/e2e/consensus_test.go index b65d5d0928..74774f8bde 100644 --- a/e2e-polybft/e2e/consensus_test.go +++ b/e2e-polybft/e2e/consensus_test.go @@ -32,7 +32,10 @@ func TestE2E_Consensus_Basic_WithNonValidators(t *testing.T) { const epochSize = 4 cluster := framework.NewTestCluster(t, 5, - framework.WithEpochSize(epochSize), framework.WithNonValidators(2)) + framework.WithEpochSize(epochSize), + framework.WithNonValidators(2), + framework.WithTestRewardToken(), + ) defer cluster.Stop() cluster.WaitForReady(t) @@ -100,7 +103,9 @@ func TestE2E_Consensus_BulkDrop(t *testing.T) { cluster := framework.NewTestCluster(t, clusterSize, framework.WithEpochSize(epochSize), - framework.WithBlockTime(time.Second)) + framework.WithBlockTime(time.Second), + framework.WithTestRewardToken(), + ) defer cluster.Stop() // wait for cluster to start diff --git a/e2e-polybft/e2e/migration_test.go b/e2e-polybft/e2e/migration_test.go index 04eae9cb40..f3a931e9d4 100644 --- a/e2e-polybft/e2e/migration_test.go +++ b/e2e-polybft/e2e/migration_test.go @@ -149,6 +149,7 @@ func TestE2E_Migration(t *testing.T) { cluster := frameworkpolybft.NewTestCluster(t, 7, frameworkpolybft.WithNonValidators(2), frameworkpolybft.WithValidatorSnapshot(5), + frameworkpolybft.WithTestRewardToken(), frameworkpolybft.WithGenesisState(tmpDir, types.Hash(stateRoot)), ) defer cluster.Stop() diff --git a/e2e-polybft/e2e/network_test.go b/e2e-polybft/e2e/network_test.go index c04a1320c1..7129244d70 100644 --- a/e2e-polybft/e2e/network_test.go +++ b/e2e-polybft/e2e/network_test.go @@ -21,6 +21,7 @@ func TestE2E_NetworkDiscoveryProtocol(t *testing.T) { // create cluster cluster := framework.NewTestCluster(t, validatorCount, + framework.WithTestRewardToken(), framework.WithNonValidators(nonValidatorCount), framework.WithBootnodeCount(1)) defer cluster.Stop()