Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AnkushinDaniil committed Jan 31, 2025
1 parent 08c4de0 commit 6219405
Show file tree
Hide file tree
Showing 3 changed files with 246 additions and 278 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ require (
go.uber.org/mock v0.5.0
go.uber.org/zap v1.27.0
golang.org/x/crypto v0.32.0
golang.org/x/exp v0.0.0-20241217172543-b2144cdd0a67
google.golang.org/grpc v1.70.0
google.golang.org/protobuf v1.36.4
gopkg.in/yaml.v3 v3.0.1
Expand Down Expand Up @@ -188,7 +189,6 @@ require (
go.uber.org/dig v1.18.0 // indirect
go.uber.org/fx v1.23.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
golang.org/x/exp v0.0.0-20241217172543-b2144cdd0a67 // indirect
golang.org/x/mod v0.22.0 // indirect
golang.org/x/net v0.34.0 // indirect
golang.org/x/sync v0.10.0 // indirect
Expand Down
6 changes: 6 additions & 0 deletions rpc/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,12 @@ type ExecutionResources struct {

func (r ExecutionResources) MarshalJSON() ([]byte, error) { //nolint:gocritic
switch r.rpcVersion {
case V0_6:
return json.Marshal(struct {
ComputationResources
}{
ComputationResources: r.ComputationResources,
})
case V0_7:
return json.Marshal(struct {
ComputationResources
Expand Down
Loading

0 comments on commit 6219405

Please sign in to comment.