diff --git a/cmd/tx-submission/main.go b/cmd/tx-submission/main.go index 7d3ab247..824f1e89 100644 --- a/cmd/tx-submission/main.go +++ b/cmd/tx-submission/main.go @@ -141,7 +141,7 @@ func main() { // Wait until we're done <-doneChan - fmt.Printf("Successfully sent transaction %x\n", tx.Hash()) + fmt.Printf("Successfully sent transaction %x\n", tx.Id()) if err := o.Close(); err != nil { fmt.Printf("ERROR: failed to close connection: %s\n", err) diff --git a/ledger/common/script/context.go b/ledger/common/script/context.go index 356e3852..f7b3bd00 100644 --- a/ledger/common/script/context.go +++ b/ledger/common/script/context.go @@ -209,7 +209,7 @@ func NewTxInfoV3FromTransaction( Signatories: signatoriesInfo(tx.RequiredSigners()), Redeemers: redeemers, Data: tmpData, - Id: tx.Hash(), + Id: tx.Id(), Votes: votes, ProposalProcedures: proposalProcedures, } diff --git a/ledger/conway/conway_test.go b/ledger/conway/conway_test.go index 7cf191ea..6e68120d 100644 --- a/ledger/conway/conway_test.go +++ b/ledger/conway/conway_test.go @@ -179,7 +179,7 @@ func TestConwayTx_Utxorpc(t *testing.T) { t.Fatalf("failed to convert Conway tx to utxorpc: %v", err) } - expHash := tx.Hash().Bytes() + expHash := tx.Id().Bytes() if !bytes.Equal(utxoTx.Hash, expHash) { t.Errorf("tx hash mismatch\nexpected: %x\nactual : %x", expHash, utxoTx.Hash) }