Skip to content

Commit

Permalink
chore(deps): bump utxorpc/go-codegen to 0.8.0 (#678)
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Gianelloni <[email protected]>
  • Loading branch information
wolf31o2 authored Jul 30, 2024
1 parent 14cb4c7 commit dc0a114
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ require (
github.com/fxamacker/cbor/v2 v2.7.0
github.com/jinzhu/copier v0.4.0
github.com/stretchr/testify v1.9.0
github.com/utxorpc/go-codegen v0.7.0
github.com/utxorpc/go-codegen v0.8.0
go.uber.org/goleak v1.3.0
golang.org/x/crypto v0.25.0
)
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRI
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
github.com/utxorpc/go-codegen v0.7.0 h1:AlULPJuKJNvcgXAySiN6oj+jlvWdcFUeDn8cPkJMtus=
github.com/utxorpc/go-codegen v0.7.0/go.mod h1:+npvJc9wftIf8JMtWaRXxwjX0YlOCpNp1OlZVioNEO0=
github.com/utxorpc/go-codegen v0.8.0 h1:KFhYwxx0VU3nPm43v2WmtR+uQE2zqXTNIQbYgRA1K9U=
github.com/utxorpc/go-codegen v0.8.0/go.mod h1:+npvJc9wftIf8JMtWaRXxwjX0YlOCpNp1OlZVioNEO0=
github.com/x448/float16 v0.8.4 h1:qLwI1I70+NjRFUR3zs1JPUCgaCXSh3SW62uAKT1mSBM=
github.com/x448/float16 v0.8.4/go.mod h1:14CWIYCyZA/cWjXOioeEpHeN/83MdbZDRQHoFcYsOfg=
go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto=
Expand Down
4 changes: 3 additions & 1 deletion ledger/alonzo.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,9 @@ func (o AlonzoTransactionOutput) Utxorpc() *utxorpc.TxOutput {
Address: o.OutputAddress.Bytes(),
Coin: o.Amount(),
// Assets: o.Assets,
DatumHash: o.TxOutputDatumHash.Bytes(),
Datum: &utxorpc.Datum{
Hash: o.TxOutputDatumHash.Bytes(),
},
}
}

Expand Down
6 changes: 4 additions & 2 deletions ledger/babbage.go
Original file line number Diff line number Diff line change
Expand Up @@ -429,8 +429,10 @@ func (o BabbageTransactionOutput) Utxorpc() *utxorpc.TxOutput {
Address: address,
Coin: o.Amount(),
// Assets: o.Assets(),
// Datum: o.Datum(),
DatumHash: datumHash,
Datum: &utxorpc.Datum{
Hash: datumHash,
// OriginalCbor: o.Datum().Cbor(),
},
// Script: o.ScriptRef,
}
}
Expand Down
2 changes: 1 addition & 1 deletion ledger/babbage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2765,7 +2765,7 @@ func TestBabbageTransactionOutput_Utxorpc_DatumOptionNil(t *testing.T) {
txOutput := output.Utxorpc()

assert.NotNil(t, txOutput)
assert.Equal(t, []byte{}, txOutput.DatumHash)
assert.Equal(t, []byte{}, txOutput.Datum.Hash)
assert.Equal(t, []byte{0x0}, txOutput.Address)
assert.Equal(t, uint64(1000), txOutput.Coin)
}
Expand Down

0 comments on commit dc0a114

Please sign in to comment.