Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit 75a7602

Browse files
committed
Fix misspelling
1 parent 2a52437 commit 75a7602

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

api/jsonapi.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3468,7 +3468,7 @@ func (i *jsonAPIHandler) GETEstimateFee(w http.ResponseWriter, r *http.Request)
34683468
var feeLevel wallet.FeeLevel
34693469
switch strings.ToUpper(fl) {
34703470
case "PRIORITY":
3471-
feeLevel = wallet.PRIORITY
3471+
feeLevel = wallet.PRIOIRTY
34723472
case "NORMAL":
34733473
feeLevel = wallet.NORMAL
34743474
case "ECONOMIC":
@@ -3526,7 +3526,7 @@ func (i *jsonAPIHandler) GETFees(w http.ResponseWriter, r *http.Request) {
35263526
if coinType == "fees" {
35273527
ret := make(map[string]interface{})
35283528
for ct, wal := range i.node.Multiwallet {
3529-
priority := wal.GetFeePerByte(wallet.PRIORITY)
3529+
priority := wal.GetFeePerByte(wallet.PRIOIRTY)
35303530
normal := wal.GetFeePerByte(wallet.NORMAL)
35313531
economic := wal.GetFeePerByte(wallet.ECONOMIC)
35323532
superEconomic := wal.GetFeePerByte(wallet.SUPER_ECONOMIC)
@@ -3555,7 +3555,7 @@ func (i *jsonAPIHandler) GETFees(w http.ResponseWriter, r *http.Request) {
35553555
ErrorResponse(w, http.StatusBadRequest, "Unknown wallet type")
35563556
return
35573557
}
3558-
priority := wal.GetFeePerByte(wallet.PRIORITY)
3558+
priority := wal.GetFeePerByte(wallet.PRIOIRTY)
35593559
normal := wal.GetFeePerByte(wallet.NORMAL)
35603560
economic := wal.GetFeePerByte(wallet.ECONOMIC)
35613561
superEconomic := wal.GetFeePerByte(wallet.SUPER_ECONOMIC)
@@ -3947,7 +3947,7 @@ func (i *jsonAPIHandler) GETWalletStatus(w http.ResponseWriter, r *http.Request)
39473947
ret := make(map[string]interface{})
39483948
for ct, wal := range i.node.Multiwallet {
39493949
height, hash := wal.ChainTip()
3950-
ret[ct.CurrencyCode()] = status{height, hash.String()}
3950+
ret[ct.CurrencyCode()] = status{height, hash}
39513951
}
39523952
out, err := json.MarshalIndent(ret, "", " ")
39533953
if err != nil {
@@ -3963,7 +3963,7 @@ func (i *jsonAPIHandler) GETWalletStatus(w http.ResponseWriter, r *http.Request)
39633963
return
39643964
}
39653965
height, hash := wal.ChainTip()
3966-
st := status{height, hash.String()}
3966+
st := status{height, hash}
39673967
out, err := json.MarshalIndent(st, "", " ")
39683968
if err != nil {
39693969
ErrorResponse(w, http.StatusInternalServerError, err.Error())

core/spend.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func (n *OpenBazaarNode) Spend(args *SpendRequest) (*SpendResponse, error) {
9292

9393
switch strings.ToUpper(args.FeeLevel) {
9494
case "PRIORITY":
95-
feeLevel = wallet.PRIORITY
95+
feeLevel = wallet.PRIOIRTY
9696
case "NORMAL":
9797
feeLevel = wallet.NORMAL
9898
case "ECONOMIC":

0 commit comments

Comments
 (0)