aboutsummaryrefslogtreecommitdiffstats
path: root/tests/gen_sttransaction.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@users.noreply.github.com>2018-01-08 21:13:22 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-01-08 21:13:22 +0800
commit9d06026c1991fdd8f034ce194fa20a0740c21810 (patch)
tree8625b7c087dfcd8cf8f087113c7242cf0d7639cd /tests/gen_sttransaction.go
parent5c2f1e00148f16655d3fb63b93920b1108165c56 (diff)
downloaddexon-9d06026c1991fdd8f034ce194fa20a0740c21810.tar
dexon-9d06026c1991fdd8f034ce194fa20a0740c21810.tar.gz
dexon-9d06026c1991fdd8f034ce194fa20a0740c21810.tar.bz2
dexon-9d06026c1991fdd8f034ce194fa20a0740c21810.tar.lz
dexon-9d06026c1991fdd8f034ce194fa20a0740c21810.tar.xz
dexon-9d06026c1991fdd8f034ce194fa20a0740c21810.tar.zst
dexon-9d06026c1991fdd8f034ce194fa20a0740c21810.zip
all: regenerate codecs with gencodec commit 90983d99de (#15830)
Fixes #15777 because null is now allowed for hexutil.Bytes.
Diffstat (limited to 'tests/gen_sttransaction.go')
-rw-r--r--tests/gen_sttransaction.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/gen_sttransaction.go b/tests/gen_sttransaction.go
index 5a489d00b..451ffcbf4 100644
--- a/tests/gen_sttransaction.go
+++ b/tests/gen_sttransaction.go
@@ -46,7 +46,7 @@ func (s *stTransaction) UnmarshalJSON(input []byte) error {
Data []string `json:"data"`
GasLimit []math.HexOrDecimal64 `json:"gasLimit"`
Value []string `json:"value"`
- PrivateKey hexutil.Bytes `json:"secretKey"`
+ PrivateKey *hexutil.Bytes `json:"secretKey"`
}
var dec stTransaction
if err := json.Unmarshal(input, &dec); err != nil {
@@ -74,7 +74,7 @@ func (s *stTransaction) UnmarshalJSON(input []byte) error {
s.Value = dec.Value
}
if dec.PrivateKey != nil {
- s.PrivateKey = dec.PrivateKey
+ s.PrivateKey = *dec.PrivateKey
}
return nil
}