File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ func (r *result) MarshalJSON() ([]byte, error) {
48
48
Error string `json:"error,omitempty"`
49
49
Address * common.Address `json:"address,omitempty"`
50
50
Hash * common.Hash `json:"hash,omitempty"`
51
- IntrinsicGas uint64 `json:"intrinsicGas,omitempty"`
51
+ IntrinsicGas hexutil. Uint64 `json:"intrinsicGas,omitempty"`
52
52
}
53
53
var out xx
54
54
if r .Error != nil {
@@ -60,7 +60,7 @@ func (r *result) MarshalJSON() ([]byte, error) {
60
60
if r .Hash != (common.Hash {}) {
61
61
out .Hash = & r .Hash
62
62
}
63
- out .IntrinsicGas = r .IntrinsicGas
63
+ out .IntrinsicGas = hexutil . Uint64 ( r .IntrinsicGas )
64
64
return json .Marshal (out )
65
65
}
66
66
Original file line number Diff line number Diff line change 2
2
{
3
3
"address" : " 0xd02d72e067e77158444ef2020ff2d325f929b363" ,
4
4
"hash" : " 0xa98a24882ea90916c6a86da650fbc6b14238e46f0af04a131ce92be897507476" ,
5
- "intrinsicGas" : 21000
5
+ "intrinsicGas" : " 0x5208 "
6
6
},
7
7
{
8
8
"address" : " 0xd02d72e067e77158444ef2020ff2d325f929b363" ,
9
9
"hash" : " 0x36bad80acce7040c45fd32764b5c2b2d2e6f778669fb41791f73f546d56e739a" ,
10
- "intrinsicGas" : 21000
10
+ "intrinsicGas" : " 0x5208 "
11
11
}
12
12
]
Original file line number Diff line number Diff line change 2
2
{
3
3
"address" : " 0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" ,
4
4
"hash" : " 0x7cc3d1a8540a44736750f03bb4d85c0113be4b3472a71bf82241a3b261b479e6" ,
5
- "intrinsicGas" : 21000
5
+ "intrinsicGas" : " 0x5208 "
6
6
},
7
7
{
8
8
"error" : " intrinsic gas too low: have 82, want 21000" ,
9
9
"address" : " 0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" ,
10
10
"hash" : " 0x3b2d2609e4361562edb9169314f4c05afc6dbf5d706bf9dda5abe242ab76a22b" ,
11
- "intrinsicGas" : 21000
11
+ "intrinsicGas" : " 0x5208 "
12
12
}
13
13
]
Original file line number Diff line number Diff line change 3
3
"error" : " value exceeds 256 bits" ,
4
4
"address" : " 0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" ,
5
5
"hash" : " 0xfbd91685dcbf8172f0e8c53e2ddbb4d26707840da6b51a74371f62a33868fd82" ,
6
- "intrinsicGas" : 21000
6
+ "intrinsicGas" : " 0x5208 "
7
7
},
8
8
{
9
9
"error" : " gasPrice exceeds 256 bits" ,
10
10
"address" : " 0x1b57ccef1fe5fb73f1e64530fb4ebd9cf1655964" ,
11
11
"hash" : " 0x45dc05035cada83748e4c1fe617220106b331eca054f44c2304d5654a9fb29d5" ,
12
- "intrinsicGas" : 21000
12
+ "intrinsicGas" : " 0x5208 "
13
13
},
14
14
{
15
15
"error" : " invalid transaction v, r, s values" ,
You can’t perform that action at this time.
0 commit comments