From e1d069921efea9f582e13dcc3ed1cb2a9a8a7fa9 Mon Sep 17 00:00:00 2001
From: "Richard T. Carback III" <rick.carback@gmail.com>
Date: Thu, 23 Feb 2023 17:02:18 +0000
Subject: [PATCH] hotfix for ChannelDBCipher -> DMDbCipher

---
 wasm/dm.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/wasm/dm.go b/wasm/dm.go
index 04696435..ef2b9cc8 100644
--- a/wasm/dm.go
+++ b/wasm/dm.go
@@ -167,7 +167,7 @@ func NewDMClientWithIndexedDb(_ js.Value, args []js.Value) any {
 	messageReceivedCB := args[3]
 	cipherID := args[4].Int()
 
-	cipher, err := bindings.GetChannelDbCipherTrackerFromID(cipherID)
+	cipher, err := bindings.GetDMDbCipherTrackerFromID(cipherID)
 	if err != nil {
 		utils.Throw(utils.TypeError, err)
 	}
@@ -216,7 +216,7 @@ func NewDMClientWithIndexedDbUnsafe(_ js.Value, args []js.Value) any {
 }
 
 func newDMClientWithIndexedDb(cmixID int, wasmJsPath string,
-	privateIdentity []byte, cb js.Value, cipher *bindings.ChannelDbCipher) any {
+	privateIdentity []byte, cb js.Value, cipher *bindings.DMDbCipher) any {
 
 	messageReceivedCB := func(uuid uint64, pubKey ed25519.PublicKey,
 		update bool) {
-- 
GitLab