Skip to content

Commit

Permalink
Merge branch 'implement-acp-77-disable-subnet-validator-tx' into impl…
Browse files Browse the repository at this point in the history
…ement-acp-77-logging
  • Loading branch information
StephenButtolph authored Oct 24, 2024
2 parents 2fef7c8 + b598793 commit c9214ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vms/platformvm/network/warp.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func (s signatureRequestVerifier) verifySubnetConversion(
s.stateLock.Lock()
defer s.stateLock.Unlock()

conversionID, _, _, err := s.state.GetSubnetConversion(subnetID)
conversion, err := s.state.GetSubnetConversion(subnetID)
if err == database.ErrNotFound {
return &common.AppError{
Code: ErrConversionDoesNotExist,
Expand All @@ -123,10 +123,10 @@ func (s signatureRequestVerifier) verifySubnetConversion(
}
}

if msg.ID != conversionID {
if msg.ID != conversion.ConversionID {
return &common.AppError{
Code: ErrMismatchedConversionID,
Message: fmt.Sprintf("provided conversionID %q != expected conversionID %q", msg.ID, conversionID),
Message: fmt.Sprintf("provided conversionID %q != expected conversionID %q", msg.ID, conversion.ConversionID),
}
}

Expand Down

0 comments on commit c9214ef

Please sign in to comment.