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
a16842cb
Commit
a16842cb
authored
Nov 13, 2019
by
mdj33
Committed by
vipwzw
Nov 13, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
take paraName in cli
parent
0165b426
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
0 deletions
+30
-0
testcase.sh
plugin/dapp/paracross/cmd/build/testcase.sh
+0
-0
paracross.go
plugin/dapp/paracross/commands/paracross.go
+0
-0
utils.go
plugin/dapp/paracross/commands/utils.go
+30
-0
No files found.
plugin/dapp/paracross/cmd/build/testcase.sh
View file @
a16842cb
This diff is collapsed.
Click to expand it.
plugin/dapp/paracross/commands/paracross.go
View file @
a16842cb
This diff is collapsed.
Click to expand it.
plugin/dapp/paracross/commands/utils.go
0 → 100644
View file @
a16842cb
// Copyright Fuzamei Corp. 2018 All Rights Reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package
commands
import
(
"strings"
"github.com/33cn/chain33/common/address"
"github.com/33cn/chain33/types"
)
// GetExecAddr 获取执行器地址
func
GetExecAddr
(
exec
string
)
(
string
,
error
)
{
if
ok
:=
types
.
IsAllowExecName
([]
byte
(
exec
),
[]
byte
(
exec
));
!
ok
{
return
""
,
types
.
ErrExecNameNotAllow
}
addrResult
:=
address
.
ExecAddress
(
exec
)
result
:=
addrResult
return
result
,
nil
}
func
getRealExecName
(
paraName
string
,
name
string
)
string
{
if
strings
.
HasPrefix
(
name
,
"user.p."
)
{
return
name
}
return
paraName
+
name
}
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