Kava-Labs / kava

DeFi for Crypto.
Apache License 2.0
446 stars 367 forks source link

fix(x/precisebank): Avoid blocked addr error on SendCoinsFromAccountToModule #2012

Closed drklee3 closed 2 months ago

drklee3 commented 2 months ago

Description

SendCoinsFromAccountToModule and SendCoins should not error even if the recipient module is blocked.

Blocked address check is only to be done by SendCoinsFromModuleToAccount

This fixes this bug and adds corresponding test.

Excluding e2e test for this specific issue at the moment: Unreliable way for a consistent fee_collector state as other tests may affect it