Skip to content

Commit dc0a114

Browse files
authored
chore(deps): bump utxorpc/go-codegen to 0.8.0 (#678)
Signed-off-by: Chris Gianelloni <[email protected]>
1 parent 14cb4c7 commit dc0a114

File tree

5 files changed

+11
-7
lines changed

5 files changed

+11
-7
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ require (
1010
github.com/fxamacker/cbor/v2 v2.7.0
1111
github.com/jinzhu/copier v0.4.0
1212
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
1414
go.uber.org/goleak v1.3.0
1515
golang.org/x/crypto v0.25.0
1616
)

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRI
1919
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
2020
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
2121
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=
2424
github.com/x448/float16 v0.8.4 h1:qLwI1I70+NjRFUR3zs1JPUCgaCXSh3SW62uAKT1mSBM=
2525
github.com/x448/float16 v0.8.4/go.mod h1:14CWIYCyZA/cWjXOioeEpHeN/83MdbZDRQHoFcYsOfg=
2626
go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto=

ledger/alonzo.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,9 @@ func (o AlonzoTransactionOutput) Utxorpc() *utxorpc.TxOutput {
249249
Address: o.OutputAddress.Bytes(),
250250
Coin: o.Amount(),
251251
// Assets: o.Assets,
252-
DatumHash: o.TxOutputDatumHash.Bytes(),
252+
Datum: &utxorpc.Datum{
253+
Hash: o.TxOutputDatumHash.Bytes(),
254+
},
253255
}
254256
}
255257

ledger/babbage.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -429,8 +429,10 @@ func (o BabbageTransactionOutput) Utxorpc() *utxorpc.TxOutput {
429429
Address: address,
430430
Coin: o.Amount(),
431431
// Assets: o.Assets(),
432-
// Datum: o.Datum(),
433-
DatumHash: datumHash,
432+
Datum: &utxorpc.Datum{
433+
Hash: datumHash,
434+
// OriginalCbor: o.Datum().Cbor(),
435+
},
434436
// Script: o.ScriptRef,
435437
}
436438
}

ledger/babbage_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2765,7 +2765,7 @@ func TestBabbageTransactionOutput_Utxorpc_DatumOptionNil(t *testing.T) {
27652765
txOutput := output.Utxorpc()
27662766

27672767
assert.NotNil(t, txOutput)
2768-
assert.Equal(t, []byte{}, txOutput.DatumHash)
2768+
assert.Equal(t, []byte{}, txOutput.Datum.Hash)
27692769
assert.Equal(t, []byte{0x0}, txOutput.Address)
27702770
assert.Equal(t, uint64(1000), txOutput.Coin)
27712771
}

0 commit comments

Comments
 (0)