Skip to content

Commit

Permalink
Only map accounts for Wasm if payable call.
Browse files Browse the repository at this point in the history
  • Loading branch information
shaunxw committed Oct 12, 2023
1 parent 1a6f4e2 commit e25aad9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chain-extensions/xvm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<T>::claim_default_evm_address(
RawOrigin::Signed(source.clone()).into(),
Expand Down

0 comments on commit e25aad9

Please sign in to comment.