Skip to content

Commit

Permalink
fix transaction sign
Browse files Browse the repository at this point in the history
  • Loading branch information
dix975 committed Jun 3, 2018
1 parent a3b7d04 commit 5b9fc80
Show file tree
Hide file tree
Showing 14 changed files with 143 additions and 488 deletions.
9 changes: 4 additions & 5 deletions eosc/cmd/vaultServe.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,6 @@ func listen(v *eosvault.Vault) {
return
}

for _, action := range tx.Actions {
action.SetToServer(true)
}

err = json.Unmarshal(inputs[1], &requiredKeys)
if err != nil {
http.Error(w, "decoding required keys", 500)
Expand All @@ -114,8 +110,11 @@ func listen(v *eosvault.Vault) {
return
}

// Ask for permission on the command line
signed, err := v.KeyBag.Sign(tx, chainID, requiredKeys...)
for _, action := range signed.Transaction.Actions {
action.SetToServer(false)
}

if err != nil {
http.Error(w, fmt.Sprintf("error signing: %s", err), 500)
return
Expand Down
160 changes: 0 additions & 160 deletions vendor/github.com/eoscanada/eos-go/DIALOG-MORE.md

This file was deleted.

245 changes: 0 additions & 245 deletions vendor/github.com/eoscanada/eos-go/DIALOG.md

This file was deleted.

9 changes: 0 additions & 9 deletions vendor/github.com/eoscanada/eos-go/LAYOUT.md

This file was deleted.

23 changes: 19 additions & 4 deletions vendor/github.com/eoscanada/eos-go/api.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions vendor/github.com/eoscanada/eos-go/encoder.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5b9fc80

Please sign in to comment.