Skip to content

Allow method overloads#2237

Merged
erikzhang merged 7 commits intomasterfrom
method-overloads
Jan 16, 2021
Merged

Allow method overloads#2237
erikzhang merged 7 commits intomasterfrom
method-overloads

Conversation

@erikzhang
Copy link
Member

No description provided.

{
var contract = NativeContract.ContractManagement.GetContract(snapshot, hash);
if (contract is null) continue;
var md = contract.Manifest.Abi.GetMethod("verify", 0);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
var md = contract.Manifest.Abi.GetMethod("verify", 0);
var md = contract.Manifest.Abi.GetMethod("verify", -1);

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the wallet support 0 parameter only. Because no InvocationScript is provided.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a side note, but we use verify with parameter (a signature) in the Notary contract (#1573). But this can be accounted for when/if implementing support for it.

@erikzhang erikzhang merged commit 39c1890 into master Jan 16, 2021
@erikzhang erikzhang deleted the method-overloads branch January 16, 2021 12:11
cloud8little pushed a commit to cloud8little/neo that referenced this pull request Jan 24, 2021
ixje added a commit to CityOfZion/neo-mamba that referenced this pull request Feb 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants