From 39baed5555ab2aa9ee212f837f6b527354bb7989 Mon Sep 17 00:00:00 2001 From: Christien Rioux Date: Tue, 25 Jul 2023 01:16:09 -0400 Subject: [PATCH] bugfix --- veilid-flutter/lib/veilid_ffi.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/veilid-flutter/lib/veilid_ffi.dart b/veilid-flutter/lib/veilid_ffi.dart index 4305ad60..73880aa3 100644 --- a/veilid-flutter/lib/veilid_ffi.dart +++ b/veilid-flutter/lib/veilid_ffi.dart @@ -688,7 +688,7 @@ class VeilidRoutingContextFFI extends VeilidRoutingContext { _ctx.ensureValid(); final nativeKey = jsonEncode(key).toNativeUtf8(); final nativeWriter = - writer != null ? jsonEncode(key).toNativeUtf8() : nullptr; + writer != null ? jsonEncode(writer).toNativeUtf8() : nullptr; final recvPort = ReceivePort("routing_context_open_dht_record"); final sendPort = recvPort.sendPort; _ctx.ffi._routingContextOpenDHTRecord(