From 76ebf8e513c4a452965dc25cd7e5ccfaa8eb4083 Mon Sep 17 00:00:00 2001 From: Igor Lisboa <46612620+lisboaigor@users.noreply.github.com> Date: Sun, 22 Nov 2026 20:57:37 +0000 Subject: [PATCH] bindings: make C# types public uniffi-bindgen-cs emits `internal` types unless `access_modifier` is set, and uniffi.toml had no csharp section. As a result the LiquidWalletKit package exposed no public API: using any type, such as `Network.Mainnet()`, from outside the assembly fails with CS0122. The C# test was not affected because it is compiled together with lwk.cs in the same assembly. Set `access_modifier = "public"`. FFI helper types stay internal, as the generator hard-codes them. Checked by generating the bindings with the pinned uniffi-bindgen-cs and building a separate consumer project: it failed with CS0122 before this change and builds and runs after it. --- lwk_bindings/uniffi.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lwk_bindings/uniffi.toml b/lwk_bindings/uniffi.toml index 545242d1d..5eade2b8e 100644 --- a/lwk_bindings/uniffi.toml +++ b/lwk_bindings/uniffi.toml @@ -6,3 +6,6 @@ cdylib_name = "lwk" [bindings.swift] module_name = "lwk" + +[bindings.csharp] +access_modifier = "public"