aurora-is-near / aurora-engine

⚙️ Aurora Engine implements an Ethereum Virtual Machine (EVM) on the NEAR Protocol.
https://doc.aurora.dev/develop/compat/evm
330 stars 82 forks source link

Fix(modexp): properly handle the case where the exponent is zero #771

Closed birchmd closed 1 year ago

birchmd commented 1 year ago

Description

We need to specially handle the case where the exponent is zero because the main code does not do this correctly. Note: EVM treats 0^0 as equal to 1.

Testing

New test for this case.