From e25aad9fd9ddaeadb69e122b7b7c6901660c82ea Mon Sep 17 00:00:00 2001 From: Shaun Wang Date: Thu, 12 Oct 2023 23:48:55 +1100 Subject: [PATCH] Only map accounts for Wasm if payable call. --- chain-extensions/xvm/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chain-extensions/xvm/src/lib.rs b/chain-extensions/xvm/src/lib.rs index 885e478bf7..658f673e20 100644 --- a/chain-extensions/xvm/src/lib.rs +++ b/chain-extensions/xvm/src/lib.rs @@ -95,7 +95,7 @@ where let source = env.ext().address(); // Claim a default account if needed. - if UA::to_h160(&source).is_none() { + if value > 0 && UA::to_h160(&source).is_none() { let claim_result = pallet_unified_accounts::Pallet::::claim_default_evm_address( RawOrigin::Signed(source.clone()).into(),