Skip to content

Commit

Permalink
test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rajranjan0608 committed Dec 5, 2024
1 parent 2bfaf5f commit 4045794
Show file tree
Hide file tree
Showing 4 changed files with 102 additions and 67 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# ------------------------------------------------------------------------------
# Build avalanche
# ------------------------------------------------------------------------------
FROM golang:1.21.12 AS avalanche
FROM golang:1.22.8 AS avalanche

ARG AVALANCHE_VERSION

Expand All @@ -16,7 +16,7 @@ RUN git checkout $AVALANCHE_VERSION && \
# ------------------------------------------------------------------------------
# Build avalanche rosetta
# ------------------------------------------------------------------------------
FROM golang:1.21.12 AS rosetta
FROM golang:1.22.8 AS rosetta

ARG ROSETTA_VERSION

Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.arm64
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# ------------------------------------------------------------------------------
# Build avalanche
# ------------------------------------------------------------------------------
FROM arm64v8/golang:1.21.7-bullseye AS avalanche
FROM arm64v8/golang:1.22.8-bullseye AS avalanche

ARG AVALANCHE_VERSION

Expand All @@ -16,7 +16,7 @@ RUN git checkout $AVALANCHE_VERSION && \
# ------------------------------------------------------------------------------
# Build avalanche rosetta
# ------------------------------------------------------------------------------
FROM arm64v8/golang:1.21.7-bullseye AS rosetta
FROM arm64v8/golang:1.22.8-bullseye AS rosetta

ARG ROSETTA_VERSION

Expand Down
7 changes: 5 additions & 2 deletions service/backend/pchain/construction.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ func (*Backend) ConstructionDerive(_ context.Context, req *types.ConstructionDer
}

// ConstructionPreprocess implements /construction/preprocess endpoint for P-chain
func (b *Backend) ConstructionPreprocess(
ctx context.Context,
func (*Backend) ConstructionPreprocess(
_ context.Context,
req *types.ConstructionPreprocessRequest,
) (*types.ConstructionPreprocessResponse, *types.Error) {
matches, err := common.MatchOperations(req.Operations)
Expand Down Expand Up @@ -95,6 +95,9 @@ func (b *Backend) ConstructionMetadata(
metadata, err = b.buildExportMetadata(ctx, req.Options)
case pmapper.OpAddValidator, pmapper.OpAddDelegator, pmapper.OpAddPermissionlessDelegator, pmapper.OpAddPermissionlessValidator:
metadata, suggestedFee, err = b.buildStakingMetadata(ctx, req.Options, opMetadata.Matches, opMetadata.Type)
if err != nil {
return nil, service.WrapError(service.ErrInternalError, err)
}
metadata.Threshold = opMetadata.Threshold
metadata.Locktime = opMetadata.Locktime

Expand Down
Loading

0 comments on commit 4045794

Please sign in to comment.