diff --git a/packages/protocol/contracts/tokenvault/ERC721Vault.sol b/packages/protocol/contracts/tokenvault/ERC721Vault.sol index b87663d3fb..92df7884e7 100644 --- a/packages/protocol/contracts/tokenvault/ERC721Vault.sol +++ b/packages/protocol/contracts/tokenvault/ERC721Vault.sol @@ -114,7 +114,7 @@ contract ERC721Vault is BaseNFTVault, IERC721ReceiverUpgradeable { ctoken: ctoken.addr, token: token, tokenIds: tokenIds, - amounts: new uint256[](0) + amounts: new uint256[](tokenIds.length) }); } @@ -143,7 +143,7 @@ contract ERC721Vault is BaseNFTVault, IERC721ReceiverUpgradeable { ctoken: ctoken.addr, token: token, tokenIds: tokenIds, - amounts: new uint256[](0) + amounts: new uint256[](tokenIds.length) }); }