VIS-2 / taobank-04-24

0 stars 0 forks source link

Use of abi.encodePacked() with dynamic types #20

Open 0xMilenov opened 4 months ago

0xMilenov commented 4 months ago

Context

OwnerProxy::execute() OwnerProxy::addPermission()

Description

Using abi.encodePacked() with dynamic types isn't advisable when feeding the outcome into a hashing function like keccak256(), due to hash collisions. Use abi.encode() instead.

DanailYordanov commented 4 months ago

tuka obache mislq da go preravq na recommendation da e abi.encode() shoto tva sa dynamic types