Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch v.0.0.9.2 #5011

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion protocols/horizon/operations/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ type HostFunctionParameter struct {
// The model for BumpFootprintExpiration assimilates BumpFootprintExpirationOp, but is simplified.
type BumpFootprintExpiration struct {
Base
LedgersToExpire string `json:"ledgers_to_expire"`
LedgersToExpire uint32 `json:"ledgers_to_expire"`
}

// RestoreFootprint is the json resource representing a single RestoreFootprint.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -687,11 +687,8 @@ func (operation *transactionOperationWrapper) Details() (map[string]interface{},
}
case xdr.OperationTypeBumpFootprintExpiration:
op := operation.operation.Body.MustBumpFootprintExpirationOp()
details["type"] = "bump_footprint_expiration"
details["ledgers_to_expire"] = op.LedgersToExpire
case xdr.OperationTypeRestoreFootprint:
details["type"] = "restore_footprint"

default:
panic(fmt.Errorf("unknown operation type: %s", operation.OperationType()))
}
Expand Down
Loading