Skip to content

Commit 0f7f070

Browse files
committed
test: use non-unit gas price to test multiplication
1 parent ea1f3bc commit 0f7f070

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

core/state_transition.libevm_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,10 @@ func TestMinimumGasConsumption(t *testing.T) {
107107
},
108108
}
109109

110-
const gasPrice = params.Wei
110+
// Very low gas price so we can calculate the expected balance in a uint64,
111+
// but not 1 otherwise tests would pass without multiplying extra
112+
// consumption by the price.
113+
const gasPrice = 3
111114

112115
for _, tt := range tests {
113116
t.Run(tt.name, func(t *testing.T) {

0 commit comments

Comments
 (0)