This repository has been archived by the owner on Jun 24, 2024. It is now read-only.
TransferContext::get_escrow_account()
: cache escrow account addresses
#6
Closed
Labels
modules
Related to ibc modules
We currently recompute the escrow account address from
(PortId, ChannelId)
pair on every call.We should instead
#[state]
field in our moduleescrow_account_cache: sov_state::StateMap<(PortId, ChannelId), C::Address>
escrow_account_cache
; if value present return it. Otherwise, compute the escrow account address, store it inescrow_account_cache
, and return itThe text was updated successfully, but these errors were encountered: