Skip to content

Commit

Permalink
add missing changes from merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarak Ben youssef authored and Tarak Ben youssef committed Oct 18, 2024
1 parent b4f3a13 commit fec1699
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
10 changes: 10 additions & 0 deletions lib/go/test/flow_epoch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -554,8 +554,13 @@ func TestEpochAdvance(t *testing.T) {

registerNodesForStaking(t, b, env,
addresses,
signers,
stakingPublicKeys,
stakingKeyPOPs,
networkingPublicKeys,
ids)

// Set the approved node list
tx := createTxWithTemplateAndAuthorizer(b, templates.GenerateSetApprovedNodesScript(env), idTableAddress)

approvedNodeIDs := generateCadenceNodeDictionary(ids)
Expand Down Expand Up @@ -709,8 +714,13 @@ func TestEpochQCDKGNodeRegistration(t *testing.T) {
stakingKeyPOPs,
networkingPublicKeys,
ids)

// Set the approved node list
tx := createTxWithTemplateAndAuthorizer(b, templates.GenerateSetApprovedNodesScript(env), idTableAddress)

approvedNodeIDs := generateCadenceNodeDictionary(ids)
err := tx.AddArgument(approvedNodeIDs)
require.NoError(t, err)

signAndSubmit(
t, b, tx,
Expand Down
4 changes: 2 additions & 2 deletions lib/go/test/flow_idtable_staking_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,7 @@ func TestIDTableApprovals(t *testing.T) {

// Create new keys for the ID table account
IDTableAccountKey, IDTableSigner := accountKeys.NewWithSigner()
_, adminStakingKey, adminStakingPoP, _, adminNetworkingKey := generateKeysForNodeRegistration(t)
_, adminStakingKey, adminStakingPOP, _, adminNetworkingKey := generateKeysForNodeRegistration(t)
idTableAddress, feesAddr := deployStakingContract(t, b, IDTableAccountKey, IDTableSigner, &env, true, []uint64{3, 3, 3, 3, 3})
mintTokensForAccount(t, b, env, idTableAddress, "1000000000.0")

Expand All @@ -820,7 +820,7 @@ func TestIDTableApprovals(t *testing.T) {
fmt.Sprintf("%0128d", admin),
adminNetworkingKey,
adminStakingKey,
adminStakingPoP,
adminStakingPOP,
amountToCommit,
committed[adminID],
1,
Expand Down
1 change: 0 additions & 1 deletion lib/go/test/flow_stakingcollection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2956,7 +2956,6 @@ func TestStakingCollectionRegisterMultipleNodes(t *testing.T) {

// Create arrays for the node account information
nodeStakingKeys := make([]cadence.Value, numNodes)
nodeStakingKeyPOPs := make([]cadence.Value, numNodes)
nodeNetworkingKeys := make([]cadence.Value, numNodes)
nodeStakingKeyPOPs := make([]cadence.Value, numNodes)
nodeNetworkingAddresses := make([]cadence.Value, numNodes)
Expand Down

0 comments on commit fec1699

Please sign in to comment.