Skip to content

Fix contract hash#680

Merged
superboyiii merged 1 commit intoneo-project:copy-abi-to-neffrom
Tommo-L:copy-abi-to-nef
Nov 27, 2020
Merged

Fix contract hash#680
superboyiii merged 1 commit intoneo-project:copy-abi-to-neffrom
Tommo-L:copy-abi-to-nef

Conversation

@Tommo-L
Copy link
Copy Markdown
Contributor

@Tommo-L Tommo-L commented Nov 21, 2020


// TODO need to replace by ContractHash method

using var sb = new ScriptBuilder();
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

ContractCreate push the contract to the stack, so we can read the hash from the execution result

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

That's too bad, we should have a simple way to calculate contract hash, not by vm execution.

@superboyiii
Copy link
Copy Markdown
Member

I will merge this first, then we could review in #676.

@superboyiii superboyiii merged commit 5baf7b1 into neo-project:copy-abi-to-nef Nov 27, 2020
@Tommo-L Tommo-L deleted the copy-abi-to-nef branch November 27, 2020 06:11
shargon added a commit that referenced this pull request Dec 1, 2020
* Copy abi to nef

Related: neo-project/neo#1973, neo-project/neo-devpack-dotnet#378

* Update neo-cli/CLI/MainService.cs

* Fix deploy

* fix contract hash (#680)

* update to neo

* Use helper

* Clean usings

Co-authored-by: Shargon <shargon@gmail.com>
Co-authored-by: Vitor Nazário Coelho <vncoelho@gmail.com>
Co-authored-by: Luchuan <luchuan@ngd.neo.org>
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.

3 participants