mirror of
https://github.com/emo2007/block-accounting.git
synced 2025-01-18 07:26:27 +00:00
tmp
This commit is contained in:
parent
05802514f5
commit
1993292898
@ -39,7 +39,7 @@ func main() {
|
||||
},
|
||||
&cli.StringFlag{
|
||||
Name: "chain-api-url",
|
||||
Value: "http://localhost:3000",
|
||||
Value: "http://localhost:3000/api",
|
||||
},
|
||||
|
||||
// rest
|
||||
|
@ -264,6 +264,10 @@ func (i *chainInteractor) PubKey(ctx context.Context, user *models.User) ([]byte
|
||||
|
||||
pubKeyStr := string(respBody)[2:]
|
||||
|
||||
if pubKeyStr == "" {
|
||||
return nil, fmt.Errorf("error empty public key")
|
||||
}
|
||||
|
||||
return common.Hex2Bytes(pubKeyStr), nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user