proto.rune.params: add refreq cap
This commit is contained in:
parent
168f5a7407
commit
0ea5f49218
2 changed files with 2 additions and 1 deletions
|
|
@ -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'
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue