Skip to content

Commit

Permalink
fix: add 'receive' to FragmentTypes (#6204)
Browse files Browse the repository at this point in the history
* fix: add 'receive' to FragmentTypes

* chore: update changelog

---------

Co-authored-by: Alex <alex.luu@mail.utoronto.ca>
  • Loading branch information
Tuditi and Alex authored Jun 20, 2023
1 parent ab0f4cb commit 023f02d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -1603,3 +1603,7 @@ If there are any bugs, improvements, optimizations or any new feature proposal f
#### web3-eth-contract

- Event filtering using non-indexed and indexed string event arguments (#6167)

#### web3-eth-types

- Receive fragment type added (#6204)
2 changes: 1 addition & 1 deletion packages/web3-types/src/eth_abi_types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export type AbiParameter = {
readonly internalType?: string;
};

type FragmentTypes = 'constructor' | 'event' | 'function' | 'fallback';
type FragmentTypes = 'constructor' | 'event' | 'function' | 'fallback' | 'receive';

export type AbiBaseFragment = {
// type will default to string if passed ABI is declared without "as const"
Expand Down

0 comments on commit 023f02d

Please sign in to comment.