OSDN Git Service
(root)
/
bytom
/
bytom.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41f7f74
)
fix asset alias for upper (#528)
author
wz
<mars@bytom.io>
Tue, 3 Apr 2018 13:17:23 +0000
(21:17 +0800)
committer
Paladz
<yzhu101@uottawa.ca>
Tue, 3 Apr 2018 13:17:23 +0000
(21:17 +0800)
api/request.go
patch
|
blob
|
history
diff --git
a/api/request.go
b/api/request.go
index
60980b6
..
8a1b4aa
100644
(file)
--- a/
api/request.go
+++ b/
api/request.go
@@
-2,6
+2,7
@@
package api
import (
"context"
+ "strings"
"github.com/bytom/consensus"
"github.com/bytom/encoding/json"
@@
-26,6
+27,7
@@
func (a *API) filterAliases(ctx context.Context, br *BuildRequest) error {
for i, m := range br.Actions {
id, _ := m["asset_id"].(string)
alias, _ := m["asset_alias"].(string)
+ alias = strings.ToUpper(alias)
if id == "" && alias != "" {
switch alias {
case consensus.BTMAlias: