From 4095c90697bb84983b80b87423e0def46800425a Mon Sep 17 00:00:00 2001 From: Nicolas Ayache Date: Mon, 15 Dec 2025 10:36:46 +0100 Subject: [PATCH] Tezos X/Kernel/Gateway: fix transfers to unallocated Tezos accounts --- etherlink/kernel_latest/revm/src/database.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etherlink/kernel_latest/revm/src/database.rs b/etherlink/kernel_latest/revm/src/database.rs index 6cd1328c05ee..de98e44a6495 100644 --- a/etherlink/kernel_latest/revm/src/database.rs +++ b/etherlink/kernel_latest/revm/src/database.rs @@ -264,8 +264,8 @@ impl DatabasePrecompileStateChanges for EtherlinkVMDB<'_, Host> { })?; let tezos_pub_key_hash = PublicKeyHash::from_b58check(destination).unwrap(); let mut tezos_destination_account = - crate::tezosx::get_tezos_account_info(self.host, &tezos_pub_key_hash)? - .ok_or_else(|| { + crate::tezosx::get_tezos_account_info_or_init(self.host, &tezos_pub_key_hash) + .map_err(|_| { CustomPrecompileError::Revert( "destination Tezos account not found".to_string(), ) -- GitLab