@@ -74,22 +74,22 @@ type rpcTestCase struct {
74
74
}
75
75
76
76
const genesisBlockHash = "0f8fb4e17d2ab9f3097af75ca7fd16064160fb8043db94909e00dd4e257b9dc4"
77
- const testContractHash = "565cff9508ebc75aadd7fe59f38dac610ab6093c "
78
- const deploymentTxHash = "a14390941cc3a1d87393eff720a722e9cd350bd6ed233c5fe2001326c80eb68e "
77
+ const testContractHash = "449fe8fbd4523072f5e3a4dfa17a494c119d4c08 "
78
+ const deploymentTxHash = "af170742f0f8a2bc064bdbdb2faa2b517e3df833d4d047da8a946c0b8d581b06 "
79
79
80
80
const (
81
81
verifyContractHash = "06ed5314c2e4cb103029a60b86d46afa2fb8f67c"
82
82
verifyContractAVM = "VwIAQS1RCDBwDBTunqIsJ+NL0BSPxBCOCPdOj1BIskrZMCQE2zBxaBPOStkoJATbKGlK2SgkBNsol0A="
83
- verifyWithArgsContractHash = "4dc916254efd2947c93b11207e8ffc0bb56161c5 "
84
- nnsContractHash = "892429fcd47c30f8451781acc627e8b20e0d64f3 "
83
+ verifyWithArgsContractHash = "6261b3bf753bdc3d24c1327a23fd891e1c8a7ccd "
84
+ nnsContractHash = "ebe47d5143bb8726b87b02efb5cd98e21174fd38 "
85
85
nnsToken1ID = "6e656f2e636f6d"
86
- nfsoContractHash = "730ebe719ab8e3b69d11dafc95cdb9bf409db179 "
86
+ nfsoContractHash = "2f5c1826bb4da1c764a8871427e4044cf3e82dbd "
87
87
nfsoToken1ID = "7e244ffd6aa85fb1579d2ed22e9b761ab62e3486"
88
88
storageContractHash = "ebc0c16a76c808cd4dde6bcc063f09e45e331ec7"
89
89
faultedTxHashLE = "82279bfe9bada282ca0f8cb8e0bb124b921af36f00c69a518320322c6f4fef60"
90
90
faultedTxBlock uint32 = 23
91
91
invokescriptContractAVM = "VwIADBQBDAMOBQYMDQIODw0DDgcJAAAAAErZMCQE2zBwaEH4J+yMqiYEEUAMFA0PAwIJAAIBAwcDBAUCAQAOBgwJStkwJATbMHFpQfgn7IyqJgQSQBNA"
92
- block20StateRootLE = "858c873539d6d24a70f2be13f9dafc61aef2b63c2aa16bb440676de6e44e3cf1 "
92
+ block20StateRootLE = "b49a35fd3a749fc2f7f4e5fe1f288ef2b6188416f65fe5b691892e8209092082 "
93
93
)
94
94
95
95
var (
@@ -1381,7 +1381,7 @@ var rpcTestCases = map[string][]rpcTestCase{
1381
1381
script = append (script , 0x41 , 0x62 , 0x7d , 0x5b , 0x52 )
1382
1382
return & result.Invoke {
1383
1383
State : "HALT" ,
1384
- GasConsumed : 31922970 ,
1384
+ GasConsumed : 31922730 ,
1385
1385
Script : script ,
1386
1386
Stack : []stackitem.Item {stackitem .Make (true )},
1387
1387
Notifications : []state.NotificationEvent {{
@@ -1411,7 +1411,7 @@ var rpcTestCases = map[string][]rpcTestCase{
1411
1411
chg := []dboper.Operation {{
1412
1412
State : "Changed" ,
1413
1413
Key : []byte {0xfa , 0xff , 0xff , 0xff , 0xb },
1414
- Value : []byte {0x54 , 0xb2 , 0xd2 , 0xa3 , 0x51 , 0x79 , 0x12 },
1414
+ Value : []byte {0x06 , 0x44 , 0xda , 0xa3 , 0x51 , 0x79 , 0x12 },
1415
1415
}, {
1416
1416
State : "Added" ,
1417
1417
Key : []byte {0xfb , 0xff , 0xff , 0xff , 0x14 , 0xd6 , 0x24 , 0x87 , 0x12 , 0xff , 0x97 , 0x22 , 0x80 , 0xa0 , 0xae , 0xf5 , 0x24 , 0x1c , 0x96 , 0x4d , 0x63 , 0x78 , 0x29 , 0xcd , 0xb },
@@ -1423,7 +1423,7 @@ var rpcTestCases = map[string][]rpcTestCase{
1423
1423
}, {
1424
1424
State : "Changed" ,
1425
1425
Key : []byte {0xfa , 0xff , 0xff , 0xff , 0x14 , 0xee , 0x9e , 0xa2 , 0x2c , 0x27 , 0xe3 , 0x4b , 0xd0 , 0x14 , 0x8f , 0xc4 , 0x10 , 0x8e , 0x8 , 0xf7 , 0x4e , 0x8f , 0x50 , 0x48 , 0xb2 },
1426
- Value : []byte {0x41 , 0x01 , 0x21 , 0x05 , 0x0c , 0x76 , 0x4f , 0xdf , 0x08 },
1426
+ Value : []byte {0x41 , 0x01 , 0x21 , 0x05 , 0xf6 , 0x64 , 0x58 , 0xdf , 0x08 },
1427
1427
}}
1428
1428
// Can be returned in any order.
1429
1429
assert .ElementsMatch (t , chg , res .Diagnostics .Changes )
@@ -1439,7 +1439,7 @@ var rpcTestCases = map[string][]rpcTestCase{
1439
1439
cryptoHash , _ := e .chain .GetNativeContractScriptHash (nativenames .CryptoLib )
1440
1440
return & result.Invoke {
1441
1441
State : "HALT" ,
1442
- GasConsumed : 13970250 ,
1442
+ GasConsumed : 13969530 ,
1443
1443
Script : script ,
1444
1444
Stack : []stackitem.Item {stackitem .Make ("1.2.3.4" )},
1445
1445
Notifications : []state.NotificationEvent {},
@@ -1532,7 +1532,7 @@ var rpcTestCases = map[string][]rpcTestCase{
1532
1532
script = append (script , 0x41 , 0x62 , 0x7d , 0x5b , 0x52 )
1533
1533
return & result.Invoke {
1534
1534
State : "HALT" ,
1535
- GasConsumed : 31922970 ,
1535
+ GasConsumed : 31922730 ,
1536
1536
Script : script ,
1537
1537
Stack : []stackitem.Item {stackitem .Make (true )},
1538
1538
Notifications : []state.NotificationEvent {{
@@ -1558,7 +1558,7 @@ var rpcTestCases = map[string][]rpcTestCase{
1558
1558
cryptoHash , _ := e .chain .GetNativeContractScriptHash (nativenames .CryptoLib )
1559
1559
return & result.Invoke {
1560
1560
State : "HALT" ,
1561
- GasConsumed : 13970250 ,
1561
+ GasConsumed : 13969530 ,
1562
1562
Script : script ,
1563
1563
Stack : []stackitem.Item {stackitem .Make ("1.2.3.4" )},
1564
1564
Notifications : []state.NotificationEvent {},
@@ -3260,7 +3260,7 @@ func testRPCProtocol(t *testing.T, doRPCCall func(string, string, *testing.T) []
3260
3260
t .Run ("contract-based verification with parameters" , func (t * testing.T ) {
3261
3261
verAcc , err := util .Uint160DecodeStringLE (verifyWithArgsContractHash )
3262
3262
require .NoError (t , err )
3263
- checkContract (t , verAcc , []byte {}, 244130 ) // No C# match, but we believe it's OK and it differs from the one above.
3263
+ checkContract (t , verAcc , []byte {}, 244010 ) // No C# match, but we believe it's OK and it differs from the one above.
3264
3264
})
3265
3265
t .Run ("contract-based verification with invocation script" , func (t * testing.T ) {
3266
3266
verAcc , err := util .Uint160DecodeStringLE (verifyWithArgsContractHash )
@@ -3270,7 +3270,7 @@ func testRPCProtocol(t *testing.T, doRPCCall func(string, string, *testing.T) []
3270
3270
emit .Int (invocWriter .BinWriter , 5 )
3271
3271
emit .String (invocWriter .BinWriter , "" )
3272
3272
invocScript := invocWriter .Bytes ()
3273
- checkContract (t , verAcc , invocScript , 146960 ) // No C# match, but we believe it's OK and it has a specific invocation script overriding anything server-side.
3273
+ checkContract (t , verAcc , invocScript , 146840 ) // No C# match, but we believe it's OK and it has a specific invocation script overriding anything server-side.
3274
3274
})
3275
3275
t .Run ("execution limit, ok" , func (t * testing.T ) {
3276
3276
// 1_4000_0000 GAS with the default 1.5 allowed by Policy
@@ -3575,7 +3575,7 @@ func checkNep17Balances(t *testing.T, e *executor, acc any) {
3575
3575
},
3576
3576
{
3577
3577
Asset : e .chain .UtilityTokenHash (),
3578
- Amount : "37106285100 " ,
3578
+ Amount : "37106870550 " ,
3579
3579
LastUpdated : 23 ,
3580
3580
Decimals : 8 ,
3581
3581
Name : "GasToken" ,
0 commit comments