Skip to content
This repository was archived by the owner on Mar 6, 2023. It is now read-only.

Commit 2b9d8d6

Browse files
committed
Silence warning for external keyword in human-readable ABI.
1 parent 2d35e5e commit 2b9d8d6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src.ts/utils/abi-coder.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ function parseSignatureFunction(fragment: string): FunctionFragment {
280280
name: '',
281281
outputs: [],
282282
payable: false,
283-
stateMutability: null,
283+
stateMutability: null, // @TODO: Should this be initialized to 'nonpayable'?
284284
type: 'function'
285285
};
286286

@@ -326,6 +326,7 @@ function parseSignatureFunction(fragment: string): FunctionFragment {
326326
abi.constant = true;
327327
abi.stateMutability = 'view';
328328
break;
329+
case 'external':
329330
case 'public':
330331
case '':
331332
break;

0 commit comments

Comments
 (0)