From c31673a650afeb3da4ffc0cba6b7fc0dbb32444b Mon Sep 17 00:00:00 2001 From: Kammerlo Date: Mon, 1 Jun 2026 12:43:29 +0200 Subject: [PATCH] fix: fixing lintining issues in pipeline --- go/mechanisms/cardano/exact/server/scheme.go | 6 +++--- go/mechanisms/cardano/exact/server/scheme_test.go | 6 +++--- typescript/packages/mechanisms/cardano/src/utils.ts | 7 ++++--- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/go/mechanisms/cardano/exact/server/scheme.go b/go/mechanisms/cardano/exact/server/scheme.go index 8f93881fb0..6ef054f5b0 100644 --- a/go/mechanisms/cardano/exact/server/scheme.go +++ b/go/mechanisms/cardano/exact/server/scheme.go @@ -18,9 +18,9 @@ import ( "fmt" "strings" - x402 "github.com/x402-foundation/x402/go" - "github.com/x402-foundation/x402/go/mechanisms/cardano" - "github.com/x402-foundation/x402/go/types" + x402 "github.com/x402-foundation/x402/go/v2" + "github.com/x402-foundation/x402/go/v2/mechanisms/cardano" + "github.com/x402-foundation/x402/go/v2/types" ) // ExactCardanoScheme implements x402.SchemeNetworkServer for the Cardano diff --git a/go/mechanisms/cardano/exact/server/scheme_test.go b/go/mechanisms/cardano/exact/server/scheme_test.go index bd3854781b..6243c9f2f3 100644 --- a/go/mechanisms/cardano/exact/server/scheme_test.go +++ b/go/mechanisms/cardano/exact/server/scheme_test.go @@ -4,9 +4,9 @@ import ( "context" "testing" - x402 "github.com/x402-foundation/x402/go" - "github.com/x402-foundation/x402/go/mechanisms/cardano" - "github.com/x402-foundation/x402/go/types" + x402 "github.com/x402-foundation/x402/go/v2" + "github.com/x402-foundation/x402/go/v2/mechanisms/cardano" + "github.com/x402-foundation/x402/go/v2/types" ) func TestSchemeID(t *testing.T) { diff --git a/typescript/packages/mechanisms/cardano/src/utils.ts b/typescript/packages/mechanisms/cardano/src/utils.ts index f10f9b17af..07ef86d3f7 100644 --- a/typescript/packages/mechanisms/cardano/src/utils.ts +++ b/typescript/packages/mechanisms/cardano/src/utils.ts @@ -206,6 +206,7 @@ interface CslTransactionOutputs { } interface CslTransactionBody { + to_bytes(): Uint8Array; inputs(): CslTransactionInputs; outputs(): CslTransactionOutputs; ttl?(): unknown; @@ -235,15 +236,15 @@ interface CslTransaction { } interface CslModule { - Transaction: { from_bytes(bytes: Uint8Array): CslTransaction }; - // CSL v11/v12 only. - hash_transaction?(body: CslTransactionBody): { to_bytes(): Uint8Array }; // CSL v13+ replacement: stable body hash via FixedTransaction. FixedTransaction?: { new_from_body_bytes(bytes: Uint8Array): { transaction_hash(): { to_bytes(): Uint8Array }; }; }; + Transaction: { from_bytes(bytes: Uint8Array): CslTransaction }; + // CSL v11/v12 only. + hash_transaction?(body: CslTransactionBody): { to_bytes(): Uint8Array }; } /**