diff options
author | Felix Lange <fjl@twurst.com> | 2015-08-27 00:02:51 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2015-08-27 00:02:51 +0800 |
commit | 847794a321e9bc46d9b9a9d7c90a520a0fb75c19 (patch) | |
tree | 0e025c9437108eb59f8e25411df32601b189ddd7 /rpc/api/personal_args.go | |
parent | abce09954b6901b446c004ee06b389c338922f28 (diff) | |
parent | 5dd2462816c007b13590e7d9ab0bc8b02b027439 (diff) | |
download | dexon-847794a321e9bc46d9b9a9d7c90a520a0fb75c19.tar dexon-847794a321e9bc46d9b9a9d7c90a520a0fb75c19.tar.gz dexon-847794a321e9bc46d9b9a9d7c90a520a0fb75c19.tar.bz2 dexon-847794a321e9bc46d9b9a9d7c90a520a0fb75c19.tar.lz dexon-847794a321e9bc46d9b9a9d7c90a520a0fb75c19.tar.xz dexon-847794a321e9bc46d9b9a9d7c90a520a0fb75c19.tar.zst dexon-847794a321e9bc46d9b9a9d7c90a520a0fb75c19.zip |
Merge pull request #1722 from bas-vk/remote-deleteaccount
Remove personal.deleteAccount from RPC interface
Diffstat (limited to 'rpc/api/personal_args.go')
-rw-r--r-- | rpc/api/personal_args.go | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/rpc/api/personal_args.go b/rpc/api/personal_args.go index 5a584fb0c..89419029b 100644 --- a/rpc/api/personal_args.go +++ b/rpc/api/personal_args.go @@ -44,36 +44,6 @@ func (args *NewAccountArgs) UnmarshalJSON(b []byte) (err error) { return shared.NewInvalidTypeError("passhrase", "not a string") } -type DeleteAccountArgs struct { - Address string - Passphrase string -} - -func (args *DeleteAccountArgs) UnmarshalJSON(b []byte) (err error) { - var obj []interface{} - if err := json.Unmarshal(b, &obj); err != nil { - return shared.NewDecodeParamError(err.Error()) - } - - if len(obj) < 2 { - return shared.NewInsufficientParamsError(len(obj), 2) - } - - if addr, ok := obj[0].(string); ok { - args.Address = addr - } else { - return shared.NewInvalidTypeError("address", "not a string") - } - - if passhrase, ok := obj[1].(string); ok { - args.Passphrase = passhrase - } else { - return shared.NewInvalidTypeError("passhrase", "not a string") - } - - return nil -} - type UnlockAccountArgs struct { Address string Passphrase string |