mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 02:42:27 +00:00
Fixed breaking changes
This commit is contained in:
parent
2c9fde6044
commit
3c936ceae1
2 changed files with 12 additions and 4 deletions
|
|
@ -169,7 +169,7 @@ func (api *SignerAPI) determineSignatureFormat(contentType string, addr common.M
|
|||
}
|
||||
sighash, msg := SignTextValidator(validatorData)
|
||||
message := []*NameValueType{
|
||||
&NameValueType{
|
||||
{
|
||||
Name: "message",
|
||||
Typ: "text",
|
||||
Value: msg,
|
||||
|
|
@ -191,7 +191,7 @@ func (api *SignerAPI) determineSignatureFormat(contentType string, addr common.M
|
|||
return nil, err
|
||||
}
|
||||
message := []*NameValueType{
|
||||
&NameValueType{
|
||||
{
|
||||
Name: "Clique block",
|
||||
Typ: "clique",
|
||||
Value: fmt.Sprintf("clique block %d [0x%x]", header.Number, header.Hash()),
|
||||
|
|
@ -207,7 +207,7 @@ func (api *SignerAPI) determineSignatureFormat(contentType string, addr common.M
|
|||
}
|
||||
sighash, msg := SignTextPlain(plainData)
|
||||
message := []*NameValueType{
|
||||
&NameValueType{
|
||||
{
|
||||
Name: "message",
|
||||
Typ: "text/plain",
|
||||
Value: msg,
|
||||
|
|
|
|||
|
|
@ -642,9 +642,17 @@ function ApproveSignData(r){
|
|||
addr, _ := mixAddr("0x694267f14675d7e1b9494fd8d72fefe1755710fa")
|
||||
|
||||
fmt.Printf("address %v %v\n", addr.String(), addr.Original())
|
||||
|
||||
nvt := []*core.NameValueType{
|
||||
{
|
||||
Name: "message",
|
||||
Typ: "text/plain",
|
||||
Value: msg,
|
||||
},
|
||||
}
|
||||
resp, err := r.ApproveSignData(&core.SignDataRequest{
|
||||
Address: *addr,
|
||||
Message: msg,
|
||||
Message: nvt,
|
||||
Hash: hash,
|
||||
Meta: core.Metadata{Remote: "remoteip", Local: "localip", Scheme: "inproc"},
|
||||
Rawdata: raw,
|
||||
|
|
|
|||
Loading…
Reference in a new issue