File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -253,6 +253,8 @@ func TestEnv(t *testing.T) {
253
253
expected , _ := json .Marshal (env )
254
254
require .Equal (t , expected , ires .Data )
255
255
256
+ tx_hash , _ := types .ForceNewChecksum ("AABBCCDDEEFF0011AABBCCDDEEFF0011AABBCCDDEEFF0011AABBCCDDEEFF0011" ).MarshalJSON ()
257
+
256
258
// Execute mirror env with Transaction
257
259
env = types.Env {
258
260
Block : types.BlockInfo {
@@ -264,7 +266,8 @@ func TestEnv(t *testing.T) {
264
266
Address : "wasm10dyr9899g6t0pelew4nvf4j5c3jcgv0r5d3a5l" ,
265
267
},
266
268
Transaction : & types.TransactionInfo {
267
- Index : 18 ,
269
+ Index : 18 ,
270
+ TransactionHash : tx_hash ,
268
271
},
269
272
}
270
273
info = api .MockInfo ("creator" , nil )
Original file line number Diff line number Diff line change @@ -33,6 +33,9 @@ type TransactionInfo struct {
33
33
// Along with BlockInfo.Height, this allows you to get a unique
34
34
// transaction identifier for the chain for future queries
35
35
Index uint32 `json:"index"`
36
+
37
+ // Checksum of the transaction.
38
+ TransactionHash []byte `json:"transaction_hash,omitempty"`
36
39
}
37
40
38
41
type MessageInfo struct {
You can’t perform that action at this time.
0 commit comments