refactor: remove unused context argument from types/simulation.RandomFees (#17737)
This commit is contained in:
@@ -65,7 +65,7 @@ func FindAccount(accs []Account, address sdk.Address) (Account, bool) {
|
||||
// RandomFees returns a random fee by selecting a random coin denomination and
|
||||
// amount from the account's available balance. If the user doesn't have enough
|
||||
// funds for paying fees, it returns empty coins.
|
||||
func RandomFees(r *rand.Rand, ctx sdk.Context, spendableCoins sdk.Coins) (sdk.Coins, error) {
|
||||
func RandomFees(r *rand.Rand, spendableCoins sdk.Coins) (sdk.Coins, error) {
|
||||
if spendableCoins.Empty() {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
@@ -68,7 +68,7 @@ func TestRandomFees(t *testing.T) {
|
||||
tt := tt
|
||||
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
got, err := simulation.RandomFees(r, sdk.Context{}, tt.spendableCoins)
|
||||
got, err := simulation.RandomFees(r, tt.spendableCoins)
|
||||
if (err != nil) != tt.wantErr {
|
||||
t.Errorf("RandomFees() error = %v, wantErr %v", err, tt.wantErr)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user