Skip to content

Commit

Permalink
Add field name to UFraction{ to make linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
webmaster128 committed Apr 3, 2023
1 parent df4437b commit 67b6ebe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions ibc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func TestIBCHandshake(t *testing.T) {
vm := withVM(t)
checksum := createTestContract(t, vm, IBC_TEST_CONTRACT)
gasMeter1 := api.NewMockGasMeter(TESTING_GAS_LIMIT)
deserCost := types.UFraction{1, 1}
deserCost := types.UFraction{Numerator: 1, Denominator: 1}
// instantiate it with this store
store := api.NewLookup(gasMeter1)
goapi := api.NewMockAPI()
Expand Down Expand Up @@ -159,7 +159,7 @@ func TestIBCPacketDispatch(t *testing.T) {
vm := withVM(t)
checksum := createTestContract(t, vm, IBC_TEST_CONTRACT)
gasMeter1 := api.NewMockGasMeter(TESTING_GAS_LIMIT)
deserCost := types.UFraction{1, 1}
deserCost := types.UFraction{Numerator: 1, Denominator: 1}
// instantiate it with this store
store := api.NewLookup(gasMeter1)
goapi := api.NewMockAPI()
Expand Down
6 changes: 3 additions & 3 deletions lib_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func TestHappyPath(t *testing.T) {
vm := withVM(t)
checksum := createTestContract(t, vm, HACKATOM_TEST_CONTRACT)

deserCost := types.UFraction{1, 1}
deserCost := types.UFraction{Numerator: 1, Denominator: 1}
gasMeter1 := api.NewMockGasMeter(TESTING_GAS_LIMIT)
// instantiate it with this store
store := api.NewLookup(gasMeter1)
Expand Down Expand Up @@ -175,7 +175,7 @@ func TestEnv(t *testing.T) {
vm := withVM(t)
checksum := createTestContract(t, vm, CYBERPUNK_TEST_CONTRACT)

deserCost := types.UFraction{1, 1}
deserCost := types.UFraction{Numerator: 1, Denominator: 1}
gasMeter1 := api.NewMockGasMeter(TESTING_GAS_LIMIT)
// instantiate it with this store
store := api.NewLookup(gasMeter1)
Expand Down Expand Up @@ -242,7 +242,7 @@ func TestGetMetrics(t *testing.T) {
// Create contract
checksum := createTestContract(t, vm, HACKATOM_TEST_CONTRACT)

deserCost := types.UFraction{1, 1}
deserCost := types.UFraction{Numerator: 1, Denominator: 1}

// GetMetrics 2
metrics, err = vm.GetMetrics()
Expand Down

0 comments on commit 67b6ebe

Please sign in to comment.