OpenZeppelin / workshops

Code and slides for OpenZeppelin Workshops
428 stars 277 forks source link

forwarder.getNonce is not a function #41

Closed burhon97 closed 6 months ago

burhon97 commented 7 months ago

I have tried your example workshops/25-defender-metatx-api and on running script scripts/sign.js got error:

Signing registration of alice as 0xA7C37aEfF34ac0994B3a350c56a591f321EbD8A3...
TypeError: forwarder.getNonce is not a function

Please help me to resolve this issue!

ElerianDePenaFuerte commented 6 months ago

getNonce was used in the old OZ contracts V4. I assume you are using V5 of the contracts. Thus replace getNonce() by nonces()

burhon97 commented 6 months ago

thanks @ElerianDePenaFuerte