Added support for sighash-style tuple parsing.
This commit is contained in:
parent
c35ddaf646
commit
19aaade9c6
@ -87,7 +87,11 @@ function parseParamType(param: string, allowIndexed: boolean): ParseNode {
|
||||
let c = param[i];
|
||||
switch (c) {
|
||||
case "(":
|
||||
if (!node.state.allowParams) { throwError(i); }
|
||||
if (node.state.allowType && node.type === "") {
|
||||
node.type = "tuple";
|
||||
} else if (!node.state.allowParams) {
|
||||
throwError(i);
|
||||
}
|
||||
node.state.allowType = false;
|
||||
node.type = verifyType(node.type);
|
||||
node.components = [ newNode(node) ];
|
||||
|
Loading…
Reference in New Issue
Block a user