Skip to content

Commit c790344

Browse files
committed
fix: sui integration test
SuiTransaction.Digest was renamed to TxDigest in commit 518d13e (PR #4850). The live integration test was not updated. Fixed the test by: - Using tx.TxDigest. - Retaining the nil check. - Adding an equality assertion against the requested digest.
1 parent 1bcfc75 commit c790344

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

node/pkg/suiclient/suigrpc_live_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,10 @@ func TestGrpcClientGetTransaction(t *testing.T) {
9696
})
9797

9898
require.NoError(t, err)
99-
require.NotNil(t, tx.Digest)
99+
require.NotNil(t, tx.TxDigest)
100+
require.Equal(t, transactionDigest, *tx.TxDigest)
100101

101-
fmt.Println("[+] Transaction Digest: ", *tx.Digest)
102+
fmt.Println("[+] Transaction Digest: ", *tx.TxDigest)
102103
for _, ev := range tx.Events {
103104
fmt.Printf("\tEventType=%s\n", ev.EventType)
104105
fmt.Println("\t\tPackageID:", ev.PackageID)

0 commit comments

Comments
 (0)