Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
plugin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
link33
plugin
Commits
7b584343
Commit
7b584343
authored
Jan 16, 2019
by
heyubin
Committed by
vipwzw
Jan 17, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add by hyb for issues231
parent
7d3f70c1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
11 deletions
+2
-11
multisig.go
plugin/dapp/multisig/commands/multisig.go
+0
-1
query.go
plugin/dapp/multisig/executor/query.go
+1
-1
const.go
plugin/dapp/multisig/types/const.go
+1
-9
No files found.
plugin/dapp/multisig/commands/multisig.go
View file @
7b584343
...
...
@@ -699,7 +699,6 @@ func parseAccInfo(view interface{}) (interface{}, error) {
for
_
,
dailyLimit
:=
range
res
.
DailyLimits
{
dailyLimt
:=
strconv
.
FormatFloat
(
float64
(
dailyLimit
.
DailyLimit
)
/
float64
(
types
.
Coin
),
'f'
,
4
,
64
)
spentToday
:=
strconv
.
FormatFloat
(
float64
(
dailyLimit
.
SpentToday
)
/
float64
(
types
.
Coin
),
'f'
,
4
,
64
)
fmt
.
Println
(
"parseAccInfo dailyLimt"
,
dailyLimt
)
dailyLimitResult
:=
&
mty
.
DailyLimitResult
{
Symbol
:
dailyLimit
.
Symbol
,
Execer
:
dailyLimit
.
Execer
,
...
...
plugin/dapp/multisig/executor/query.go
View file @
7b584343
...
...
@@ -45,7 +45,7 @@ func (m *MultiSig) Query_MultiSigAccounts(in *mty.ReqMultiSigAccs) (types.Messag
if
totalcount
==
0
{
return
accountAddrs
,
nil
}
if
in
.
End
>
totalcount
{
if
in
.
End
>
=
totalcount
{
return
nil
,
types
.
ErrInvalidParam
}
for
index
:=
in
.
Start
;
index
<=
in
.
End
;
index
++
{
...
...
plugin/dapp/multisig/types/const.go
View file @
7b584343
...
...
@@ -5,8 +5,6 @@
package
types
import
(
"strings"
"github.com/33cn/chain33/common/log/log15"
"github.com/33cn/chain33/types"
)
...
...
@@ -125,13 +123,7 @@ func IsAssetsInvalid(exec, symbol string) error {
multisiglog
.
Error
(
"IsAssetsInvalid"
,
"exec"
,
exec
)
return
ErrInvalidExec
}
//Symbol检测
symbolstr
:=
strings
.
Split
(
symbol
,
"."
)[
len
(
strings
.
Split
(
symbol
,
"."
))
-
1
]
valid
:=
validSymbol
([]
byte
(
symbolstr
))
if
!
valid
{
multisiglog
.
Error
(
"IsAssetsInvalid"
,
"symbol"
,
symbol
)
return
ErrInvalidSymbol
}
//Symbol不做检测
return
nil
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment