Ethers.js: Dollar sign is valid identifier character but not accepted

Created on 7 Jun 2021  路  3Comments  路  Source: ethers-io/ethers.js

Ethers.js doesn't accept function names with a dollar sign in them.

https://github.com/ethers-io/ethers.js/blob/4e6d121fb8aa7327290afab7653364be8ddd8d81/packages/abi/src.ts/fragments.ts#L1032

See the lexer definition in the Solidity repo:

An identifier in solidity has to start with a letter, a dollar-sign or an underscore and may additionally contain numbers after the first symbol.

bug fixed

All 3 comments

Thanks. I鈥檒l get to this along with another parser issue sometime this week.

This has been fixed in 5.3.1. Try it out and let me know if you have any issues.

Thanks! :)

@ricmoo Thank you! Seems to work.

Was this page helpful?
0 / 5 - 0 ratings