Skip to content

Commit

Permalink
fix(protocol): update amounts emitted to match length with tokenIds (#…
Browse files Browse the repository at this point in the history
…15898)

Co-authored-by: Daniel Wang <99078276+dantaik@users.noreply.github.com>
Co-authored-by: D <51912515+adaki2004@users.noreply.github.com>
  • Loading branch information
3 people committed Feb 19, 2024
1 parent e583d99 commit bfa0ca2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/protocol/contracts/tokenvault/ERC721Vault.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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)
});
}

Expand Down Expand Up @@ -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)
});
}

Expand Down

0 comments on commit bfa0ca2

Please sign in to comment.