Skip to content

Commit

Permalink
-- making go lint happy
Browse files Browse the repository at this point in the history
  • Loading branch information
algorotem committed Feb 3, 2021
1 parent b8fcdb5 commit e90338e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion ledger/apply/asset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func TestAssetTransfer(t *testing.T) {
},
}

mockBal := MakeMockBalancesWithAccounts(protocol.ConsensusCurrentVersion, addrs)
mockBal := makeMockBalancesWithAccounts(protocol.ConsensusCurrentVersion, addrs)

tx := transactions.Transaction{
Type: protocol.AssetTransferTx,
Expand Down
4 changes: 2 additions & 2 deletions ledger/apply/keyreg_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,11 @@ func TestKeyregApply(t *testing.T) {
SelectionPK: vrfSecrets.PK,
},
}
err := Keyreg(tx.KeyregTxnFields, tx.Header, MakeMockBalances(protocol.ConsensusCurrentVersion), transactions.SpecialAddresses{FeeSink: feeSink}, nil)
err := Keyreg(tx.KeyregTxnFields, tx.Header, makeMockBalances(protocol.ConsensusCurrentVersion), transactions.SpecialAddresses{FeeSink: feeSink}, nil)
require.NoError(t, err)

tx.Sender = feeSink
err = Keyreg(tx.KeyregTxnFields, tx.Header, MakeMockBalances(protocol.ConsensusCurrentVersion), transactions.SpecialAddresses{FeeSink: feeSink}, nil)
err = Keyreg(tx.KeyregTxnFields, tx.Header, makeMockBalances(protocol.ConsensusCurrentVersion), transactions.SpecialAddresses{FeeSink: feeSink}, nil)
require.Error(t, err)

tx.Sender = src
Expand Down
4 changes: 2 additions & 2 deletions ledger/apply/mockBalances.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ type mockBalances struct {
b map[basics.Address]basics.AccountData
}

func MakeMockBalances(cv protocol.ConsensusVersion) *mockBalances {
func makeMockBalances(cv protocol.ConsensusVersion) *mockBalances {
return &mockBalances{
ConsensusVersion: cv,
b: map[basics.Address]basics.AccountData{},
}
}

func MakeMockBalancesWithAccounts(cv protocol.ConsensusVersion, b map[basics.Address]basics.AccountData) *mockBalances {
func makeMockBalancesWithAccounts(cv protocol.ConsensusVersion, b map[basics.Address]basics.AccountData) *mockBalances {
return &mockBalances{
ConsensusVersion: cv,
b: b,
Expand Down
6 changes: 3 additions & 3 deletions ledger/apply/payment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func TestAlgosEncoding(t *testing.T) {
}

func TestPaymentApply(t *testing.T) {
mockBalV0 := MakeMockBalances(protocol.ConsensusCurrentVersion)
mockBalV0 := makeMockBalances(protocol.ConsensusCurrentVersion)

secretSrc := keypair()
src := basics.Address(secretSrc.SignatureVerifier)
Expand All @@ -104,8 +104,8 @@ func TestPaymentApply(t *testing.T) {
}

func TestCheckSpender(t *testing.T) {
mockBalV0 := MakeMockBalances(protocol.ConsensusCurrentVersion)
mockBalV7 := MakeMockBalances(protocol.ConsensusV7)
mockBalV0 := makeMockBalances(protocol.ConsensusCurrentVersion)
mockBalV7 := makeMockBalances(protocol.ConsensusV7)

secretSrc := keypair()
src := basics.Address(secretSrc.SignatureVerifier)
Expand Down

0 comments on commit e90338e

Please sign in to comment.