Skip to content

Commit

Permalink
Fix: add missing function type "receive" (#5165) (#5417)
Browse files Browse the repository at this point in the history
* Fix: add missing function type "receive"

This PR adds missing type "receive"

example in solidity:

```solidity
receive() external payable {
        // any code
 }
```

* Update Changgelog

* Update CHANGELOG.md

* Update CHANGELOG.md

Co-authored-by: Oleksii Kosynskyi <oleksii.kosynskyi@gmail.com>
Co-authored-by: Junaid <86780488+jdevcs@users.noreply.github.com>
Co-authored-by: Alex <alex.luu@mail.utoronto.ca>
Co-authored-by: Alex <luu.alex98@gmail.com>

Co-authored-by: Gustavo <gustavo@obex.pw>
Co-authored-by: Oleksii Kosynskyi <oleksii.kosynskyi@gmail.com>
Co-authored-by: Alex <alex.luu@mail.utoronto.ca>
Co-authored-by: Alex <luu.alex98@gmail.com>
  • Loading branch information
5 people committed Sep 6, 2022
1 parent edcd215 commit 67f7413
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Expand Up @@ -596,3 +596,6 @@ Released with 1.0.0-beta.37 code base.
- Update node version on actions to fix breaking mosaic test (#5354)
- Start incrementing jsonrpc.id from random number (#5327)
- `web3-eth-contract`'s `call` and `send` methods no longer mutate `options` argument (#5394)

### Added
- Add missing function type "receive" in `AbiType` (#5165)
2 changes: 1 addition & 1 deletion packages/web3-utils/types/index.d.ts
Expand Up @@ -212,7 +212,7 @@ export interface Units {
tether: string;
}

export type AbiType = 'function' | 'constructor' | 'event' | 'fallback';
export type AbiType = 'function' | 'constructor' | 'event' | 'fallback' | 'receive';
export type StateMutabilityType = 'pure' | 'view' | 'nonpayable' | 'payable';

export interface AbiItem {
Expand Down

0 comments on commit 67f7413

Please sign in to comment.