fix regex for solc pattern matching
This commit is contained in:
parent
709ff38bc1
commit
7000583654
|
@ -421,7 +421,7 @@ func bind(types []string, abis []string, bytecodes []string, fsigs []map[string]
|
|||
var findDeps func(contract *tmplContract) map[string]struct{}
|
||||
findDeps = func(contract *tmplContract) map[string]struct{} {
|
||||
// 1) match all libraries that this contract depends on
|
||||
re, err := regexp.Compile(`__\\$([a-f0-9]+)\\$__`)
|
||||
re, err := regexp.Compile(`__\$([a-f0-9]+)\$__`)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
|
|
@ -101,7 +101,7 @@ func (d *depTreeBuilder) buildDepTrees(pattern, contract string) {
|
|||
node.overrideAddr = &addr
|
||||
}
|
||||
// iterate each referenced library in the unlinked code, recurse and built its subtree.
|
||||
reMatchSpecificPattern, err := regexp.Compile(`__\\$([a-f0-9]+)\\$__`)
|
||||
reMatchSpecificPattern, err := regexp.Compile(`__\$([a-f0-9]+)\$__`)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue