File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -1752,10 +1752,14 @@ async def select_coins(
17521752 # don't love this snippet of code
17531753 # but I think action scopes need to accept CoinSelectionConfigs
17541754 # instead of solely TXConfigs in order for this to be less ugly
1755+ autofilled_cs_config = request .autofill (
1756+ constants = self .service .wallet_state_manager .constants ,
1757+ )
17551758 tx_config = DEFAULT_TX_CONFIG .override (
1756- ** request .autofill (
1757- constants = self .service .wallet_state_manager .constants ,
1758- ).__dict__
1759+ ** {
1760+ field .name : getattr (autofilled_cs_config , field .name )
1761+ for field in dataclasses .fields (autofilled_cs_config )
1762+ }
17591763 )
17601764
17611765 if await self .service .wallet_state_manager .synced () is False :
You can’t perform that action at this time.
0 commit comments