File tree Expand file tree Collapse file tree 5 files changed +11
-7
lines changed Expand file tree Collapse file tree 5 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ require (
10
10
github.com/fxamacker/cbor/v2 v2.7.0
11
11
github.com/jinzhu/copier v0.4.0
12
12
github.com/stretchr/testify v1.9.0
13
- github.com/utxorpc/go-codegen v0.7 .0
13
+ github.com/utxorpc/go-codegen v0.8 .0
14
14
go.uber.org/goleak v1.3.0
15
15
golang.org/x/crypto v0.25.0
16
16
)
Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRI
19
19
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 /go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4 =
20
20
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg =
21
21
github.com/stretchr/testify v1.9.0 /go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY =
22
- github.com/utxorpc/go-codegen v0.7 .0 h1:AlULPJuKJNvcgXAySiN6oj+jlvWdcFUeDn8cPkJMtus =
23
- github.com/utxorpc/go-codegen v0.7 .0 /go.mod h1:+npvJc9wftIf8JMtWaRXxwjX0YlOCpNp1OlZVioNEO0 =
22
+ github.com/utxorpc/go-codegen v0.8 .0 h1:KFhYwxx0VU3nPm43v2WmtR+uQE2zqXTNIQbYgRA1K9U =
23
+ github.com/utxorpc/go-codegen v0.8 .0 /go.mod h1:+npvJc9wftIf8JMtWaRXxwjX0YlOCpNp1OlZVioNEO0 =
24
24
github.com/x448/float16 v0.8.4 h1:qLwI1I70+NjRFUR3zs1JPUCgaCXSh3SW62uAKT1mSBM =
25
25
github.com/x448/float16 v0.8.4 /go.mod h1:14CWIYCyZA/cWjXOioeEpHeN/83MdbZDRQHoFcYsOfg =
26
26
go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto =
Original file line number Diff line number Diff line change @@ -249,7 +249,9 @@ func (o AlonzoTransactionOutput) Utxorpc() *utxorpc.TxOutput {
249
249
Address : o .OutputAddress .Bytes (),
250
250
Coin : o .Amount (),
251
251
// Assets: o.Assets,
252
- DatumHash : o .TxOutputDatumHash .Bytes (),
252
+ Datum : & utxorpc.Datum {
253
+ Hash : o .TxOutputDatumHash .Bytes (),
254
+ },
253
255
}
254
256
}
255
257
Original file line number Diff line number Diff line change @@ -429,8 +429,10 @@ func (o BabbageTransactionOutput) Utxorpc() *utxorpc.TxOutput {
429
429
Address : address ,
430
430
Coin : o .Amount (),
431
431
// Assets: o.Assets(),
432
- // Datum: o.Datum(),
433
- DatumHash : datumHash ,
432
+ Datum : & utxorpc.Datum {
433
+ Hash : datumHash ,
434
+ // OriginalCbor: o.Datum().Cbor(),
435
+ },
434
436
// Script: o.ScriptRef,
435
437
}
436
438
}
Original file line number Diff line number Diff line change @@ -2765,7 +2765,7 @@ func TestBabbageTransactionOutput_Utxorpc_DatumOptionNil(t *testing.T) {
2765
2765
txOutput := output .Utxorpc ()
2766
2766
2767
2767
assert .NotNil (t , txOutput )
2768
- assert .Equal (t , []byte {}, txOutput .DatumHash )
2768
+ assert .Equal (t , []byte {}, txOutput .Datum . Hash )
2769
2769
assert .Equal (t , []byte {0x0 }, txOutput .Address )
2770
2770
assert .Equal (t , uint64 (1000 ), txOutput .Coin )
2771
2771
}
You can’t perform that action at this time.
0 commit comments