From 42c279f0c8d884e6c3f76a2750d72a856ea6fc70 Mon Sep 17 00:00:00 2001 From: Daniel Wang <99078276+dantaik@users.noreply.github.com> Date: Tue, 12 Mar 2024 17:14:33 +0800 Subject: [PATCH] fix(protocol): fix a bug in changeBridgedToken (#16403) --- packages/protocol/contracts/tokenvault/ERC20Vault.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/protocol/contracts/tokenvault/ERC20Vault.sol b/packages/protocol/contracts/tokenvault/ERC20Vault.sol index fcf0804c051..daa2820b4e7 100644 --- a/packages/protocol/contracts/tokenvault/ERC20Vault.sol +++ b/packages/protocol/contracts/tokenvault/ERC20Vault.sol @@ -177,7 +177,7 @@ contract ERC20Vault is BaseVault { || keccak256(bytes(ctoken.name)) != keccak256(bytes(_ctoken.name)) ) revert VAULT_CTOKEN_MISMATCH(); - delete bridgedToCanonical[_btokenNew]; + delete bridgedToCanonical[btokenOld_]; btokenBlacklist[btokenOld_] = true; // Start the migration