diff options
author | obscuren <geffobscura@gmail.com> | 2014-04-26 07:47:55 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-04-26 07:48:40 +0800 |
commit | 0f93da400ab7fd238eb7286f14c229d780f73636 (patch) | |
tree | 32645ca22a9f4ac216cdebb7026f13d2bf3a434f /ethutil | |
parent | f3818478e2601df1d9cfc9cc36b021366f870856 (diff) | |
download | go-tangerine-0f93da400ab7fd238eb7286f14c229d780f73636.tar.gz go-tangerine-0f93da400ab7fd238eb7286f14c229d780f73636.tar.zst go-tangerine-0f93da400ab7fd238eb7286f14c229d780f73636.zip |
Added new state object change echanism
Diffstat (limited to 'ethutil')
-rw-r--r-- | ethutil/value.go | 7 |
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 { |