Skip to content

Commit

Permalink
Merge pull request #1622 from nspcc-dev/nativenames
Browse files Browse the repository at this point in the history
native: update contract names
  • Loading branch information
roman-khimov authored Jan 12, 2021
2 parents 4112d6b + 33b9265 commit ca86b78
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pkg/core/native/compatibility_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (

// Compatibility test. hashes are taken directly from C# node.
func TestNativeHashes(t *testing.T) {
require.Equal(t, "c0073f4c7069bf38995780c9da065f9b3949ea7a", newDesignate(false).Hash.StringLE())
require.Equal(t, "136ec44854ad9a714901eb7d714714f1791203f2", newDesignate(false).Hash.StringLE())
require.Equal(t, "a6a6c15dcdc9b997dac448b6926522d22efeedfb", newGAS().Hash.StringLE())
require.Equal(t, "cd97b70d82d69adfcd9165374109419fade8d6ab", newManagement().Hash.StringLE())
require.Equal(t, "081514120c7894779309255b7fb18b376cec731a", newManagement().Hash.StringLE())
require.Equal(t, "0a46e2e37c9987f570b4af253fb77e7eef0f72b6", newNEO().Hash.StringLE())
// Not yet a part of NEO.
//require.Equal(t, "", newNotary().Hash.StringLE()())
Expand Down
4 changes: 2 additions & 2 deletions pkg/core/native/nativenames/names.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ package nativenames

// Names of all native contracts.
const (
Management = "ManagementContract"
Management = "ContractManagement"
Neo = "NeoToken"
Gas = "GasToken"
Policy = "PolicyContract"
Oracle = "OracleContract"
Designation = "DesignationContract"
Designation = "RoleManagement"
Notary = "Notary"
)
2 changes: 1 addition & 1 deletion pkg/rpc/server/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ type rpcTestCase struct {
}

const testContractHash = "743ed26f78e29ecd595535b74a943b1f9ccbc444"
const deploymentTxHash = "faa8d607f4000dbb3fc41dda51110369888b8b65c40de85d36ae9e4879dc4982"
const deploymentTxHash = "a4644e08389ced59e875a8d5bdcb8fdded7507ed7dc3915a37e5be71736ac7b4"
const genesisBlockHash = "0542f4350c6e236d0509bcd98188b0034bfbecc1a0c7fcdb8e4295310d468b70"

const verifyContractHash = "a2eb22340979804cb10cc1add0b8822c201f4d8a"
Expand Down
Binary file modified pkg/rpc/server/testdata/testblocks.acc
Binary file not shown.

0 comments on commit ca86b78

Please sign in to comment.