forked from neo-project/neo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update contract without change the hash (neo-project#2044)
* Update without hash change * Specify version * Update ContractState.cs * Update ApplicationEngine.Contract.cs * Update ApplicationEngine.Contract.cs * Update ApplicationEngine.Contract.cs * Change to ushort * Return Id * Update ContractState.cs * Remove hash_new check * Update ApplicationEngine.Contract.cs * Fix UT * Remove Hash from ABI and change hash strategy * Clean code * Remove MaxLength * Change script size verification to nefFile * Rename Version to UpdateCounter * Rename ContractState.ScriptHash to Hash * Some Erik's suggestions * Some Erik's suggestions * Move CanCall * Remove Script hash from NefFile * Move to Helper * Simplify ContractState * Erik's review * NefFile.GetHash() * Remove double check * Some fixes * Some fixes * Reduce changes * Move GetContractHash to Helper * Use GetContractHash for native contracts * Fix UT paritially * Some fixes * Fix UT * Rename parameters * Update NefFile.cs * Update NefFile.cs * Change version to string * Increase to 32 * Fix * Fix UT Co-authored-by: Erik Zhang <[email protected]>
- Loading branch information
1 parent
9851cb9
commit c0a3840
Showing
31 changed files
with
335 additions
and
314 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.