aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/args.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-04-09 06:44:20 +0800
committerobscuren <geffobscura@gmail.com>2015-04-09 06:44:20 +0800
commita9959805e572ec438bf31ea97cb4a52e0e9715e9 (patch)
treec8cd9e2318c5ad19aebad5c949066071e29b9668 /rpc/args.go
parent204ac81188e43900835c6aa5bad6b3e48f3a16d0 (diff)
downloadgo-tangerine-a9959805e572ec438bf31ea97cb4a52e0e9715e9.tar.gz
go-tangerine-a9959805e572ec438bf31ea97cb4a52e0e9715e9.tar.zst
go-tangerine-a9959805e572ec438bf31ea97cb4a52e0e9715e9.zip
Removed from as a requirement and changed
Removed the from as a requiremet from the RPC eth_call. Xeth#Call now also default values to: 1. Supplied account 2. First account if any 3. No managed account => 000000..00
Diffstat (limited to 'rpc/args.go')
-rw-r--r--rpc/args.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/rpc/args.go b/rpc/args.go
index 5b1c271cc..4bc36f5d9 100644
--- a/rpc/args.go
+++ b/rpc/args.go
@@ -279,11 +279,6 @@ func (args *CallArgs) UnmarshalJSON(b []byte) (err error) {
return NewDecodeParamError(err.Error())
}
- if len(ext.From) == 0 {
- return NewValidationError("from", "is required")
- }
- args.From = ext.From
-
if len(ext.To) == 0 {
return NewValidationError("to", "is required")
}