Skip to content

Commit b459e8c

Browse files
cleanup
1 parent d05f1da commit b459e8c

File tree

9 files changed

+188
-211
lines changed

9 files changed

+188
-211
lines changed

fvm/environment/meter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"context"
55

66
"github.com/onflow/cadence/common"
7+
78
"github.com/onflow/flow-go/fvm/errors"
89
"github.com/onflow/flow-go/fvm/meter"
910
"github.com/onflow/flow-go/fvm/storage/state"
@@ -73,7 +74,6 @@ type Meter interface {
7374

7475
ComputationUsed() (uint64, error)
7576
MemoryUsed() (uint64, error)
76-
InteractionUsed() (uint64, error)
7777

7878
ComputationIntensities() meter.MeteredComputationIntensities
7979
ComputationAvailable(common.ComputationUsage) bool

fvm/evm/backends/wrappedEnv.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,6 @@ func (we *WrappedEnvironment) TotalEmittedEventBytes() uint64 {
101101
return we.env.TotalEmittedEventBytes()
102102
}
103103

104-
// InteractionUsed returns the total storage interaction used.
105-
func (we *WrappedEnvironment) InteractionUsed() (uint64, error) {
106-
val, err := we.env.InteractionUsed()
107-
return val, handleEnvironmentError(err)
108-
}
109-
110104
// EmitEvent emits an event.
111105
func (we *WrappedEnvironment) EmitEvent(event cadence.Event) error {
112106
err := we.env.EmitEvent(event)

fvm/transactionInvoker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ func (executor *transactionExecutor) deductTransactionFees() (err error) {
301301
return nil
302302
}
303303

304-
computationLimit := uint64(executor.txnState.TotalComputationLimit())
304+
computationLimit := executor.txnState.TotalComputationLimit()
305305

306306
computationUsed, err := executor.env.ComputationUsed()
307307
if err != nil {

go.mod

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ require (
4747
github.com/multiformats/go-multiaddr v0.14.0
4848
github.com/multiformats/go-multiaddr-dns v0.4.1
4949
github.com/multiformats/go-multihash v0.2.3
50-
github.com/onflow/atree v0.10.0
51-
github.com/onflow/cadence v1.7.0-preview.1.0.20250822213412-b827934e69cf
50+
github.com/onflow/atree v0.10.1
51+
github.com/onflow/cadence v1.7.0-preview.1.0.20250827214308-67611c70054a
5252
github.com/onflow/crypto v0.25.3
5353
github.com/onflow/flow v0.3.4
5454
github.com/onflow/flow-core-contracts/lib/go/contracts v1.7.4-0.20250825171851-5a0da78d0022
@@ -62,27 +62,27 @@ require (
6262
github.com/prometheus/client_golang v1.20.5
6363
github.com/rs/cors v1.8.0
6464
github.com/rs/zerolog v1.29.0
65-
github.com/schollz/progressbar/v3 v3.13.1
65+
github.com/schollz/progressbar/v3 v3.18.0
6666
github.com/sethvargo/go-retry v0.2.3
6767
github.com/shirou/gopsutil/v3 v3.22.2
6868
github.com/spf13/cobra v1.8.1
6969
github.com/spf13/pflag v1.0.6
7070
github.com/spf13/viper v1.15.0
7171
github.com/stretchr/testify v1.10.0
7272
github.com/vmihailenco/msgpack/v4 v4.3.11
73-
go.opentelemetry.io/otel v1.36.0
73+
go.opentelemetry.io/otel v1.37.0
7474
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.31.0
7575
go.opentelemetry.io/otel/sdk v1.36.0
76-
go.opentelemetry.io/otel/trace v1.36.0
76+
go.opentelemetry.io/otel/trace v1.37.0
7777
go.uber.org/atomic v1.11.0
7878
go.uber.org/multierr v1.11.0
79-
golang.org/x/crypto v0.39.0
79+
golang.org/x/crypto v0.41.0
8080
golang.org/x/exp v0.0.0-20241217172543-b2144cdd0a67
81-
golang.org/x/sync v0.15.0
82-
golang.org/x/sys v0.33.0
83-
golang.org/x/text v0.26.0
81+
golang.org/x/sync v0.16.0
82+
golang.org/x/sys v0.35.0
83+
golang.org/x/text v0.28.0
8484
golang.org/x/time v0.12.0
85-
golang.org/x/tools v0.33.0
85+
golang.org/x/tools v0.36.0
8686
google.golang.org/api v0.241.0
8787
google.golang.org/genproto v0.0.0-20250505200425-f936aa4a68b2
8888
google.golang.org/grpc v1.74.2
@@ -157,7 +157,7 @@ require (
157157
github.com/aws/smithy-go v1.22.5 // indirect
158158
github.com/benbjohnson/clock v1.3.5 // indirect
159159
github.com/beorn7/perks v1.0.1 // indirect
160-
github.com/bits-and-blooms/bitset v1.20.0 // indirect
160+
github.com/bits-and-blooms/bitset v1.24.0 // indirect
161161
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
162162
github.com/cespare/xxhash v1.1.0 // indirect
163163
github.com/cespare/xxhash/v2 v2.3.0 // indirect
@@ -229,7 +229,7 @@ require (
229229
github.com/jackpal/go-nat-pmp v1.0.2 // indirect
230230
github.com/jbenet/go-temp-err-catcher v0.1.0 // indirect
231231
github.com/jbenet/goprocess v0.1.4 // indirect
232-
github.com/k0kubun/pp v3.0.1+incompatible // indirect
232+
github.com/k0kubun/pp/v3 v3.5.0 // indirect
233233
github.com/kevinburke/go-bindata v3.24.0+incompatible // indirect
234234
github.com/klauspost/compress v1.17.11 // indirect
235235
github.com/klauspost/cpuid/v2 v2.2.9 // indirect
@@ -251,9 +251,9 @@ require (
251251
github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect
252252
github.com/magiconair/properties v1.8.7 // indirect
253253
github.com/marten-seemann/tcp v0.0.0-20210406111302-dfbc87cc63fd // indirect
254-
github.com/mattn/go-colorable v0.1.13 // indirect
254+
github.com/mattn/go-colorable v0.1.14 // indirect
255255
github.com/mattn/go-isatty v0.0.20 // indirect
256-
github.com/mattn/go-runewidth v0.0.15 // indirect
256+
github.com/mattn/go-runewidth v0.0.16 // indirect
257257
github.com/miekg/dns v1.1.62 // indirect
258258
github.com/mikioh/tcpinfo v0.0.0-20190314235526-30a79bb1804b // indirect
259259
github.com/mikioh/tcpopt v0.0.0-20190314235656-172688c1accc // indirect
@@ -308,7 +308,7 @@ require (
308308
github.com/quic-go/quic-go v0.48.2 // indirect
309309
github.com/quic-go/webtransport-go v0.8.1-0.20241018022711-4ac2c9250e66 // indirect
310310
github.com/raulk/go-watchdog v1.3.0 // indirect
311-
github.com/rivo/uniseg v0.4.4 // indirect
311+
github.com/rivo/uniseg v0.4.7 // indirect
312312
github.com/rogpeppe/go-internal v1.13.1 // indirect
313313
github.com/shirou/gopsutil v3.21.4-0.20210419000835-c7a38de76ee5+incompatible // indirect
314314
github.com/spaolacci/murmur3 v1.1.0 // indirect
@@ -337,23 +337,23 @@ require (
337337
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.61.0 // indirect
338338
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.61.0 // indirect
339339
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.31.0 // indirect
340-
go.opentelemetry.io/otel/metric v1.36.0 // indirect
340+
go.opentelemetry.io/otel/metric v1.37.0 // indirect
341341
go.opentelemetry.io/otel/sdk/metric v1.36.0 // indirect
342342
go.opentelemetry.io/proto/otlp v1.3.1 // indirect
343343
go.uber.org/dig v1.18.0 // indirect
344344
go.uber.org/fx v1.23.0 // indirect
345345
go.uber.org/mock v0.5.0 // indirect
346346
go.uber.org/zap v1.27.0 // indirect
347-
golang.org/x/mod v0.25.0 // indirect
348-
golang.org/x/net v0.41.0 // indirect
347+
golang.org/x/mod v0.27.0 // indirect
348+
golang.org/x/net v0.43.0 // indirect
349349
golang.org/x/oauth2 v0.30.0 // indirect
350-
golang.org/x/term v0.32.0 // indirect
350+
golang.org/x/term v0.34.0 // indirect
351351
gonum.org/v1/gonum v0.16.0 // indirect
352352
google.golang.org/appengine v1.6.8 // indirect
353353
google.golang.org/genproto/googleapis/rpc v0.0.0-20250603155806-513f23925822 // indirect
354354
gopkg.in/ini.v1 v1.67.0 // indirect
355355
gopkg.in/yaml.v3 v3.0.1 // indirect
356-
lukechampine.com/blake3 v1.4.0 // indirect
356+
lukechampine.com/blake3 v1.4.1 // indirect
357357
nhooyr.io/websocket v1.8.7 // indirect
358358
)
359359

0 commit comments

Comments
 (0)