Skip to content
This repository has been archived by the owner on Jan 24, 2025. It is now read-only.

Commit

Permalink
Temporary fixes for the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
muXxer committed Nov 23, 2023
1 parent 0a58f41 commit ec1c279
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 3 additions & 1 deletion pkg/tests/accounts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,9 @@ func Test_StakeDelegateAndDelayedClaim(t *testing.T) {
ts.DefaultWallet(),
mock.WithBlockIssuerFeature(iotago.BlockIssuerKeys{newAccountBlockIssuerKey}, newAccountExpirySlot),
mock.WithStakingFeature(10000, 421, 0, 10),
mock.WithAccountAmount(mock.MinIssuerAccountAmount(ts.API.ProtocolParameters())),
// TODO: Temporary "fix" for the tests, lets fix this in another PR, so we can at least use the docker network again
//mock.WithAccountAmount(mock.MinIssuerAccountAmount(ts.API.ProtocolParameters())),
mock.WithAccountAmount(mock.MinValidatorAccountAmount(ts.API.ProtocolParameters())),
)

genesisCommitment := iotago.NewEmptyCommitment(ts.API)
Expand Down
8 changes: 5 additions & 3 deletions pkg/testsuite/testsuite.go
Original file line number Diff line number Diff line change
Expand Up @@ -395,9 +395,11 @@ func (t *TestSuite) AddGenesisWallet(name string, node *mock.Node, blockIssuance
}

accountDetails := snapshotcreator.AccountDetails{
AccountID: accountID,
Address: iotago.Ed25519AddressFromPubKey(newWallet.BlockIssuer.PublicKey),
Amount: mock.MinIssuerAccountAmount(t.API.ProtocolParameters()),
AccountID: accountID,
Address: iotago.Ed25519AddressFromPubKey(newWallet.BlockIssuer.PublicKey),
// TODO: Temporary "fix" for the tests, lets fix this in another PR, so we can at least use the docker network again
//Amount: mock.MinIssuerAccountAmount(t.API.ProtocolParameters()),
Amount: mock.MinValidatorAccountAmount(t.API.ProtocolParameters()) + 800,
Mana: iotago.Mana(mock.MinIssuerAccountAmount(t.API.ProtocolParameters())),
IssuerKey: iotago.Ed25519PublicKeyBlockIssuerKeyFromPublicKey(ed25519.PublicKey(newWallet.BlockIssuer.PublicKey)),
ExpirySlot: iotago.MaxSlotIndex,
Expand Down

0 comments on commit ec1c279

Please sign in to comment.