Skip to content

Commit

Permalink
Fixed AbiGen when in presence of functions that was has leading under…
Browse files Browse the repository at this point in the history
…scores or casing differences
  • Loading branch information
maoueh committed Aug 1, 2024
1 parent cd7bb73 commit 9abe49a
Show file tree
Hide file tree
Showing 7 changed files with 426 additions and 435 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## Unreleased

- Fixed AbiGen when in presence of functions that was has leading underscores or casing differences.

This was generating multiple Rust struct with the same name leading to compilation errors. Now, those cases will be de-duped and you will end up with N Rust struct all suffixed from 1 to N, like `TotalSupply1` and `TotalSupply2`.

- Fixed AbiGen generated `Event#NAME` and `Function#Name` static const in presence of multiple overloads.

This was previously using the de-duped name but this was wrong as the intention was always to be the ABI's defined named.
Expand Down
Loading

0 comments on commit 9abe49a

Please sign in to comment.