aboutsummaryrefslogtreecommitdiffstats
path: root/ethutil
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-04-26 07:47:55 +0800
committerobscuren <geffobscura@gmail.com>2014-04-26 07:48:40 +0800
commit0f93da400ab7fd238eb7286f14c229d780f73636 (patch)
tree32645ca22a9f4ac216cdebb7026f13d2bf3a434f /ethutil
parentf3818478e2601df1d9cfc9cc36b021366f870856 (diff)
downloadgo-tangerine-0f93da400ab7fd238eb7286f14c229d780f73636.tar
go-tangerine-0f93da400ab7fd238eb7286f14c229d780f73636.tar.gz
go-tangerine-0f93da400ab7fd238eb7286f14c229d780f73636.tar.bz2
go-tangerine-0f93da400ab7fd238eb7286f14c229d780f73636.tar.lz
go-tangerine-0f93da400ab7fd238eb7286f14c229d780f73636.tar.xz
go-tangerine-0f93da400ab7fd238eb7286f14c229d780f73636.tar.zst
go-tangerine-0f93da400ab7fd238eb7286f14c229d780f73636.zip
Added new state object change echanism
Diffstat (limited to 'ethutil')
-rw-r--r--ethutil/value.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/ethutil/value.go b/ethutil/value.go
index 04131aba9..b7756f9b1 100644
--- a/ethutil/value.go
+++ b/ethutil/value.go
@@ -20,7 +20,12 @@ func (val *Value) String() string {
}
func NewValue(val interface{}) *Value {
- return &Value{Val: val}
+ t := val
+ if v, ok := val.(*Value); ok {
+ t = v.Val
+ }
+
+ return &Value{Val: t}
}
func (val *Value) Type() reflect.Kind {