From 0ea5f492186b3816100b534350f1cf6b862c1f61 Mon Sep 17 00:00:00 2001 From: The MMGen Project Date: Sun, 22 Nov 2026 09:28:48 +0000 Subject: [PATCH] proto.rune.params: add `refreq` cap --- mmgen/proto/rune/params.py | 2 +- mmgen/tx/completed.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/mmgen/proto/rune/params.py b/mmgen/proto/rune/params.py index d49393bd..2103cb8f 100644 --- a/mmgen/proto/rune/params.py +++ b/mmgen/proto/rune/params.py @@ -26,7 +26,7 @@ class mainnet(CoinProtocol.Secp256k1): dfl_mmtype = 'X' coin_amt = 'UniAmt' max_tx_fee = 0.2 - caps = () + caps = ('refreq') mmcaps = ('tw', 'rpc', 'rpc_init') base_proto = 'THORChain' base_proto_coin = 'RUNE' diff --git a/mmgen/tx/completed.py b/mmgen/tx/completed.py index 58169635..b1677c63 100644 --- a/mmgen/tx/completed.py +++ b/mmgen/tx/completed.py @@ -83,6 +83,7 @@ class Completed(Base): def check_swap_memo(self): if memo_bytes := self.get_swap_memo_maybe(): if self.is_refreq: + assert 'refreq' in self.proto.caps, f'{self.proto.name} protocol does not support reference memos' memo_bytes = self.swap_proto_mod.reference_memo( reference_memo_str=memo_bytes.decode()).memo.encode() from ..swap.proto.thorchain import Memo