Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix storage fee #2033

Merged
merged 312 commits into from
Nov 1, 2020
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
Show all changes
312 commits
Select commit Hold shift + click to select a range
50527eb
dotnet format (#983)
igormcoelho Aug 2, 2019
c13ad46
Fixes `NeoToken.CalculateBonus()` (#992)
erikzhang Aug 4, 2019
1a1dbaf
Small cache changes (#994)
shargon Aug 4, 2019
343d4da
Fixes `GetRegisteredValidators()` (#991)
erikzhang Aug 5, 2019
f4dd234
Fix/travis parallel jobs (#987)
ZhangTao1596 Aug 6, 2019
c7b12c3
Fixes #999
erikzhang Aug 6, 2019
6838d84
Add and update some Unit tests in IO module (#998)
eryeer Aug 7, 2019
7fba266
Fix (#1008)
shargon Aug 8, 2019
601bb47
Fix for 1005 (#1006)
shargon Aug 8, 2019
b1f078d
Fix null values during ChangeViewReason (#1016)
belane Aug 10, 2019
39d4e70
Avoid processing own hashes (3x) (#1009)
vncoelho Aug 11, 2019
02c49ec
Scoped signatures (#968)
shargon Aug 12, 2019
e22f2ee
Improving the use of `RelayCache` on `ProtocolHandler` (#1014)
vncoelho Aug 12, 2019
aa15e37
Fix the potential risk to get null CurrentHeaderHash from Blockchain …
yongjiema Aug 16, 2019
4b3c1f2
Unit Test for Wallets Module (#1018)
eryeer Aug 16, 2019
37ae8dd
Revert Console.WriteLine (#986)
shargon Aug 19, 2019
b37109a
Set max block size (#953)
shargon Aug 20, 2019
afcb9fc
GitHub Contribution Guide (#1028)
lock9 Aug 20, 2019
d77ebce
Optimize `GetHeader()` and `GetBlock()` (#1039)
erikzhang Aug 20, 2019
7228fc5
Update policy - Add maximum witness size (in bytes) (#1020)
shargon Aug 21, 2019
cd4340f
Update VM to last changes (#1048)
shargon Aug 23, 2019
09d1063
dotnet format (#1054)
igormcoelho Aug 24, 2019
dca0e50
Fix consensus problem for proposed blocks with zero transactions (#1053)
shargon Aug 25, 2019
db6db5e
Small OnPersist optimization (#1058)
shargon Aug 26, 2019
cf75178
fix crlf on neo.UnitTests and set all files to not use BOM (byte orde…
igormcoelho Aug 27, 2019
16e4178
Exposing supported methods used by InteropService (#1060)
lock9 Aug 27, 2019
edb08fa
Remove lines of code (#1062)
shargon Aug 27, 2019
cffda40
Cleaning .editorconfig file (#1067)
vncoelho Aug 28, 2019
f06f26c
Hide the prefix in the store (#1070)
erikzhang Aug 28, 2019
bc25b7b
Fixes `Transaction.ToJson()` (#1071)
erikzhang Aug 28, 2019
1e07dd5
Optimize mempool message (#1068)
shargon Aug 29, 2019
9e89907
Fix Runtime_GetNotifications (#1073)
shargon Aug 29, 2019
ee478c9
empty scripthash, all notifications (#1074)
igormcoelho Aug 30, 2019
36d8bc0
Issues templates for Bug report and Feature Request (#1034)
lock9 Sep 1, 2019
c212d6e
Update NuGets (#1080)
shargon Sep 2, 2019
44b8104
Downgrade Sqlite to 2.1.4 (#1086)
cloud8little Sep 10, 2019
4c54f47
Fix consensus (#1083)
erikzhang Sep 12, 2019
f76c037
v3.0.0-preview1
erikzhang Sep 16, 2019
9c05432
C# SDK Add Transaction Manager and Smart Contract APIs (#1026)
chenquanyu Sep 20, 2019
65005fb
Template fix (#1107)
lock9 Sep 22, 2019
cee078e
Unit test For Legder module (#1038)
eryeer Sep 23, 2019
3a4327b
Fix tx reverify (#1116)
Tommo-L Sep 26, 2019
74f5acf
Add `vmState` field in rpc getrawtransaction result (#1117)
Tommo-L Sep 26, 2019
18bf2f2
Speed up travis (#1136)
shargon Oct 3, 2019
480d55e
Simplify and improve consensus payload serialization and deserializat…
vncoelho Oct 15, 2019
1fb1d5b
Improve the random security (#1145)
shargon Oct 15, 2019
2200df1
Simplifying access to Transactions and Blocks in syscalls (#1081)
shargon Oct 16, 2019
a0b3bfc
Fix two ToLower calls (#1155)
shargon Oct 16, 2019
e91c587
Notification limits (#1100)
erikzhang Oct 18, 2019
24f76ea
Fix GetTransactionFromBlock Syscall (#1170)
shargon Oct 22, 2019
964c9c9
Unit Test for Smartcontract Module (#1090)
eryeer Oct 23, 2019
78e1406
Ensure txs are cleared before Blockchain actor (#1166)
vncoelho Oct 24, 2019
a483cbc
Unit Test For RPC Module (#1111)
eryeer Oct 24, 2019
24cd3df
fix payload limits (#1194)
ixje Oct 29, 2019
a401b37
Fix JsonSerializer (#1197)
erikzhang Oct 30, 2019
93e453f
Fix #1128 (#1129)
igormcoelho Oct 30, 2019
610c4a0
Add shutdown event for plugins (#1195)
ixje Oct 31, 2019
83053eb
Replace function exceptwith and unionwith with faster functions (#1174)
Qiao-Jin Nov 5, 2019
09cb4fa
Unit tests for some auxiliary classes (#1192)
eryeer Nov 6, 2019
dfe21c1
Fix p2p filter unconnected peers (#1160)
Nov 7, 2019
c04de2a
Remove the case of GetData in ProtocolHandlerMailbox#ShallDrop (#1201)
doubiliu Nov 7, 2019
64b8100
Add GetFullBlocks P2P logic (enable fixing #522) (#1138)
ixje Nov 7, 2019
e2fb181
Use base64 in JsonSerializer (#1199)
shargon Nov 7, 2019
e43bc73
Optimize MerkleTree (3x) (#1203)
shargon Nov 7, 2019
af8dca4
Added more verbosity to CN logs (#1202)
shargon Nov 8, 2019
7f13b0f
Keep track of sender fee (#1183)
Qiao-Jin Nov 10, 2019
da505d0
Using problem description (#1214)
lock9 Nov 12, 2019
a3bd55f
Improve SYSCALLs: `Neo.Crypto.*` (#1190)
erikzhang Nov 13, 2019
a1c2aef
Prevent XXE (3x) (#1229)
shargon Nov 13, 2019
97d1466
Remove unnecessary logic from Mempool (#1216)
vncoelho Nov 13, 2019
0036a82
Prevent remove storage flag when there are something stored (#1227)
shargon Nov 14, 2019
4be93ef
Add NeoAPI and update code after testing with NEO3 preview1 (#1150)
chenquanyu Nov 14, 2019
a670a38
Adding neo version to feature suggestion (#1240)
lock9 Nov 17, 2019
957caa1
Fix Base58 issues (3x) (#1224)
shargon Nov 19, 2019
cd85f98
Decrease the block time threshold (3x) (#1233)
shargon Nov 21, 2019
5eb9432
Fix 1244 Mempool.ReverifyTransactions (#1248)
Nov 22, 2019
16c1223
Improve p2p message deserialization (#1262)
erikzhang Nov 22, 2019
840b5ff
Ensure that the block is valid before relay it on CheckCommits (#1220)
shargon Nov 24, 2019
c32473d
Upgrade dependencies and target frameworks (#1178)
shargon Nov 24, 2019
2c80501
Move projects into folders (#1269)
erikzhang Nov 25, 2019
c6629b7
Remove Travis and use Github Actions (#1267)
erikzhang Nov 25, 2019
0be3125
Optimize BigInteger (#1280)
erikzhang Nov 26, 2019
1c326ca
apply strict enum checking (#1254)
ixje Nov 26, 2019
4978408
Small optimizations using cached VM Script (#1215)
shargon Nov 26, 2019
284b593
Storage abstract (#1249)
erikzhang Nov 27, 2019
10e141c
Allow to iterate a byte array inside the smart contract (#1281)
shargon Nov 27, 2019
60dfeab
New plugin interface: IStoragePlugin (#1087)
erikzhang Nov 28, 2019
c10b942
Optimize TaskManager (#1294)
shargon Nov 28, 2019
be88516
Cache `Transaction.Size` (#1282)
eryeer Nov 29, 2019
497c2e9
Improving ConsensusService UT: Adding some coverage to OnPersistCompl…
vncoelho Nov 29, 2019
7c25da7
Remove Linq from ECDSA and UInt classes (#1283)
shargon Nov 30, 2019
4a810e8
Unify the BigInteger serialization standard with NeoVM (#1307)
erikzhang Nov 30, 2019
6abf897
Optimizations for .NET Standard 2.1
erikzhang Dec 1, 2019
5009915
Change address version (#1299)
belane Dec 1, 2019
87d15db
Simple Way to Parallel Verification Transaction (#1298)
eryeer Dec 1, 2019
c97b230
Fix/Improve syncing (3x): Adding ping mechanism to TaskManager for re…
yongjiema Dec 1, 2019
a945e57
Remove leveldb
erikzhang Dec 1, 2019
87981a8
Fix `InvPayload.CreateGroup()` (#1314)
erikzhang Dec 2, 2019
f5fdea7
Add Blockchain UT for parallel TX (#1310)
shargon Dec 2, 2019
9cf1a74
Allow users to more easily select MemoryStore. (#1311)
erikzhang Dec 2, 2019
e73b5a0
Remove meaningless UT (#1317)
erikzhang Dec 2, 2019
6313dd1
Improve plugins (#1312)
erikzhang Dec 3, 2019
15716dd
Fix typo (#1319)
shargon Dec 3, 2019
56ccec7
Neo.VM v3.0.0-CI00174 (#1320)
erikzhang Dec 4, 2019
bdf94bd
Fix ToParameter() (#1323)
erikzhang Dec 4, 2019
5731275
Optimize ContractManifest.Clone() (#1328)
erikzhang Dec 5, 2019
23db95b
Dispose ApplicationEngine after using (#1336)
erikzhang Dec 6, 2019
c4a5730
Update NeoVM nuget (#1331)
shargon Dec 6, 2019
1b7e6e2
Update dotnetcore.yml
erikzhang Dec 6, 2019
1284e15
Improving UT consensus with new asserts, additional coverage for Reco…
vncoelho Dec 7, 2019
83c91a3
Remove RPC (#1340)
erikzhang Dec 7, 2019
24b982b
Remove some dependencies
erikzhang Dec 7, 2019
c192be9
Update and rename dotnetcore.yml to main.yml
erikzhang Dec 9, 2019
5b03551
Readme update (#1341)
lock9 Dec 9, 2019
5e1333b
Improve JSON (#1315)
erikzhang Dec 10, 2019
a586c57
Adding some comments to P2P classes (#1212)
vncoelho Dec 10, 2019
8ec8a20
More optimizations about Span (#1352)
erikzhang Dec 11, 2019
d472578
Restrict the serialization (#1353)
erikzhang Dec 12, 2019
ed6990a
Adding contact information to manifest (#1246)
lock9 Dec 13, 2019
3aaa382
Prevent Timer's lock with wrong dns (#1358)
shargon Dec 13, 2019
dcf0d0a
Neo.VM.3.0.0-CI00190 (#1357)
erikzhang Dec 14, 2019
fd951e6
Fix SeedList initialization (#1363)
erikzhang Dec 15, 2019
203aa9f
AssemblyResolve (#1349)
erikzhang Dec 15, 2019
ae66b59
Rename SYSCALLs (#1362)
erikzhang Dec 15, 2019
8904114
Change the way to get RemoteNode from ActorSelection to RemoteNodes D…
eryeer Dec 18, 2019
8c2e743
CallEx implementation (#1364)
shargon Dec 19, 2019
76d1c56
Link fixes (#1351)
lock9 Dec 19, 2019
b167c2a
Set the price of RET to 0 (#1379)
erikzhang Dec 22, 2019
9372f8f
add data size check (#1381)
eryeer Dec 26, 2019
aa73ecb
Set limits in MerkleBlockPayload (3x) (#1377)
shargon Dec 26, 2019
830c4a5
Neo.VM.3.0.0-CI00201 (#1374)
erikzhang Dec 30, 2019
dba911b
Add relay-block-filter (#1380)
ShawnYun Jan 6, 2020
73753fc
Adding some comments to datacache (#1347)
vncoelho Jan 6, 2020
62fc232
Rename CalculateNetWorkFee() (#1401)
joeqian10 Jan 7, 2020
61208fd
Use HashsetCache instead of FIFOSet for KnownHashes and SentHashes (#…
eryeer Jan 9, 2020
633384f
Add ContainsTransaction Recheck when ParallelVerifiedTransaction Rece…
eryeer Jan 13, 2020
82f060b
Enhance security (1) (#1403)
Jan 14, 2020
e0d11d3
Fix undefined layout behaviour, and remove pinning: Uint256 and Uint1…
john-h-k Jan 15, 2020
abffe5c
Allow to verify import blocks (#1415)
shargon Jan 17, 2020
6b60462
Fix notifications (#1422)
shargon Jan 18, 2020
e0f7b4d
Add ID to ContractState (#1400)
erikzhang Jan 27, 2020
6a5569a
Fix dotnet-format (#1443)
shargon Feb 11, 2020
862aa7a
Add Salt and NEP2 to db3 wallet (#1444)
shargon Feb 21, 2020
8fd6ade
fix ToStackItem issue (#1427)
chenquanyu Feb 26, 2020
01cfd33
Allow MultiSig contracts in Wallet.Sign method (#1451)
shargon Feb 27, 2020
e5d3663
update neo-vm version (#1456)
chenquanyu Feb 28, 2020
a2594db
Remove parallel verification (#1429)
shargon Mar 3, 2020
d442b94
cast M to double (#1465)
belane Mar 9, 2020
acef719
Read Fixed (#1454)
shargon Mar 11, 2020
3b1dd1f
Adjust the Charge for Storage Writting (#1441)
eryeer Mar 13, 2020
a4c8c96
fix BigInteger0 storage outputs null (#1471)
Mar 17, 2020
3f142cb
Fix bug in contract update/destory (#1483)
doubiliu Mar 18, 2020
47303bb
Burn sys_fee (#1430)
erikzhang Mar 20, 2020
23b1d01
Replace THROWIFNOT by ASSERT (#1475)
Mar 22, 2020
90b2564
Fix change password (#1490)
Qiao-Jin Mar 23, 2020
8fdf778
Optimize the wallet UT (#1496)
erikzhang Mar 23, 2020
ce79a8a
Limit the max height for some SYSCALLs (#1494)
erikzhang Mar 24, 2020
954451a
Send RelayResult to event stream (#1495)
erikzhang Mar 24, 2020
b7cf78e
Add GasLeft syscall (#1509)
shargon Mar 26, 2020
b7d150f
Update akka to 1.4.2 (#1466)
ShawnYun Mar 27, 2020
f4e1725
Optimize wallet tests (#1499)
Qiao-Jin Mar 30, 2020
53186fd
rename bytearray to bytestring (#1524)
bettybao1209 Apr 1, 2020
ddb818f
Support changing password for nep6 wallet (#1504)
Qiao-Jin Apr 3, 2020
8b043e8
Remove UT_Culture (#1529)
Qiao-Jin Apr 3, 2020
9fe188a
remove round up sysfee (#1522)
bettybao1209 Apr 8, 2020
fbc0eba
Enable converting between public keys, script hashes and address (#1428)
Qiao-Jin Apr 8, 2020
2c8733b
Fix SYSCALLs (#1511)
erikzhang Apr 9, 2020
875b5b4
Combine RemoteNode and ProtocolHandler (#1520)
erikzhang Apr 9, 2020
b40806a
Fix akka warning (#1533)
ShawnYun Apr 10, 2020
445918e
Tell RelayResult to the sender (#1548)
erikzhang Apr 10, 2020
ef9c798
Add abstract method Wallet.ChangePassword() (#1552)
erikzhang Apr 11, 2020
6ce1f96
Network dependant signature (#1550)
shargon Apr 11, 2020
6651202
3.0.0-preview2
erikzhang Apr 15, 2020
62f8152
Vote for committee (#1491)
erikzhang Apr 15, 2020
56041a8
Fix version
erikzhang Apr 15, 2020
7d3dfde
Modify manifest according to the last amendment of NEP-3 (#1481)
erikzhang Apr 15, 2020
b5d4fd5
Sync try-catch opcodes (#1565)
Apr 15, 2020
9fd8a2a
Fix plugin configuration falure (#1564)
Qiao-Jin Apr 16, 2020
1170143
Add StackItem.ToJson() (#1569)
erikzhang Apr 16, 2020
6f63594
Call _initialize() automatically (#1572)
erikzhang Apr 18, 2020
53ea390
Remove grouping (#1566)
erikzhang Apr 18, 2020
8d23322
Add GetCallFlags (#1587)
shargon Apr 19, 2020
e0da566
Fix CallFlags (#1589)
erikzhang Apr 20, 2020
62237fd
Simplify access to storage for native contracts. (#1583)
erikzhang Apr 20, 2020
29b384d
Cache most recent block (#1592)
Qiao-Jin Apr 26, 2020
7c3faaf
Add StateLess to CallFlags (#1549)
shargon Apr 26, 2020
67ec9be
Add standard cryptography primitives (#1419)
shargon Apr 26, 2020
c044562
Datacache correction (#1611)
Qiao-Jin Apr 27, 2020
021b5f2
Fix LocalNode (#1616)
Qiao-Jin Apr 29, 2020
b9b853e
Update neo-vm package (#1624)
shargon May 1, 2020
3cec48b
Unify akka logs with neo logs (#1623)
shargon May 1, 2020
04065b0
Remove FromJson (#1625)
erikzhang May 3, 2020
dfc3f63
Unify unhandled exceptions (#1626)
shargon May 4, 2020
bc1fcd3
Make NEP6Wallet.path public (#1627)
belane May 6, 2020
4050822
Add a change list to optimize datacache commit (#1619)
Qiao-Jin May 7, 2020
7b0adda
Move cosigners to transaction attributes (#1620)
shargon May 7, 2020
033c7d5
Fix VerifyWitness (#1628)
Qiao-Jin May 8, 2020
151e1b0
Modify iterators to public (#1639)
ShawnYun May 12, 2020
ff8c477
Revert "Improve gap calculation"
shargon May 13, 2020
e78861f
Revert "Revert "Improve gap calculation""
shargon May 13, 2020
c21ec37
Use config from current working dir (#1622)
shargon May 15, 2020
758a4d7
Make Plugin.Path be virtual
erikzhang May 15, 2020
1ca5e62
Not found command (#1645)
shargon May 15, 2020
e20658e
Subscribe to RelayResult messages in ConsensusService (#1647)
erikzhang May 15, 2020
01b90de
Create only one snapshot for persist (#1602)
Qiao-Jin May 16, 2020
3808a85
Remove OnPersistCompleted()
erikzhang May 16, 2020
e5fce21
Optimize Blockchain.cs
erikzhang May 17, 2020
0ba097f
Move namespace
erikzhang May 17, 2020
6e17c69
Decouple NativeContract from InteropService. (#1649)
erikzhang May 18, 2020
1c0a23e
Optimize the `GetPrice()` mechanism of SYSCALLs (#1650)
erikzhang May 19, 2020
8c14a9d
fix the way to get the directory path of assembly (#1656)
May 20, 2020
368f0bf
Ask for mempool after sync (#1544)
shargon May 25, 2020
452d872
Remove CommitteeMembersCount and ValidatorsCount from Blockchain.cs
erikzhang May 26, 2020
9eaf7b4
Fix policy check (#1668)
May 26, 2020
0aa75cf
Inventory message stream optimization (#1667)
Qiao-Jin May 27, 2020
d785e11
Rename
erikzhang May 27, 2020
aa047c3
Refactor InteropService (#1655)
erikzhang May 30, 2020
dfeb53e
Optimize TransactionAttribute (#1674)
erikzhang May 30, 2020
0f047a1
Add MPT (#1442)
ZhangTao1596 Jun 1, 2020
50684b8
Fix DataCache.Find (#1673)
Jun 1, 2020
80ec37f
GetBlocks by block index (#1397)
ShawnYun Jun 2, 2020
e9ea256
add description field (#1678)
Jun 3, 2020
3f46aeb
Fix duplicate connection (#1685)
Jun 5, 2020
64d67c9
Check the parameters count (#1695)
erikzhang Jun 11, 2020
358cf11
Add RIPMED60 to syscall in ApplicationEngine.Crypto (#1694)
Lichen9618 Jun 11, 2020
552ea0c
Refactor NativeContract (#1693)
erikzhang Jun 12, 2020
684b659
Close #1696
erikzhang Jun 12, 2020
d89ed15
Add MaxBlockSystemFee (#1689)
Jun 13, 2020
6cbb77a
Add event name to System.Runtime.Notify() (#1701)
erikzhang Jun 15, 2020
1146cf6
Check return value of contracts (#1680)
erikzhang Jun 15, 2020
4a7e36e
Check Json.Serialize map keys (#1705)
shargon Jun 17, 2020
33e93b0
Always return a value for public methods (#1706)
erikzhang Jun 18, 2020
d49b446
Update to Neo.VM.3.0.0-CI00226 (#1713)
erikzhang Jun 18, 2020
678523c
Create callback (#1629)
shargon Jun 19, 2020
dd67c97
Add StrictUTF8 (#1710)
erikzhang Jun 19, 2020
2e21fd8
Restrict notifications (#1708)
erikzhang Jun 20, 2020
5b1c2ec
Merge pull request #20 from neo-project/master
Tommo-L Jun 22, 2020
3116cdc
fix storage fee
Oct 28, 2020
48e7a9b
fix
Oct 29, 2020
e965871
Merge branch 'master' into fix_storage_fee
Tommo-L Oct 29, 2020
546b672
Optimize
shargon Oct 29, 2020
73c4abb
Merge branch 'master' into fix_storage_fee
shargon Oct 29, 2020
8e098b1
Fix
shargon Oct 29, 2020
a3adbad
Real Fi
shargon Oct 29, 2020
5659931
apply
Oct 29, 2020
a8ce7e3
Correct the formula
erikzhang Oct 30, 2020
f853798
Merge branch 'master' into fix_storage_fee
erikzhang Oct 30, 2020
d630d56
Merge branch 'master' of https://github.com/Tommo-L/neo into fix_stor…
Oct 31, 2020
cbfb83f
Merge branch 'fix_storage_fee' of https://github.com/Tommo-L/neo into…
Oct 31, 2020
c114db3
fix ut
Oct 31, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/neo/SmartContract/ApplicationEngine.Storage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,12 @@ private void PutExInternal(StorageContext context, byte[] key, byte[] value, Sto
else
{
if (item.IsConstant) throw new InvalidOperationException();
if (value.Length <= item.Value.Length)
if (value.Length == 0)
newDataSize = 1;
else if (value.Length <= item.Value.Length)
newDataSize = (value.Length - 1) / 4 + 1;
else
newDataSize = value.Length - item.Value.Length;
newDataSize = (item.Value.Length - 1) / 4 + 1 + value.Length - item.Value.Length;
}
AddGas(newDataSize * StoragePrice);

Expand Down
4 changes: 2 additions & 2 deletions tests/neo.UnitTests/SmartContract/UT_InteropPrices.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public void ApplicationEngineReusedStorage_PartialReuse()
var setupPrice = ae.GasConsumed;
debugger.StepInto();
debugger.StepInto();
(ae.GasConsumed - setupPrice).Should().Be(1 * ApplicationEngine.StoragePrice);
(ae.GasConsumed - setupPrice).Should().Be((oldValue.Length / 4 + value.Length - oldValue.Length) * ApplicationEngine.StoragePrice);
}
}

Expand Down Expand Up @@ -185,7 +185,7 @@ public void ApplicationEngineReusedStorage_PartialReuseTwice()
debugger.StepInto(); //syscall Storage.GetContext
var setupPrice = ae.GasConsumed;
debugger.StepInto(); //syscall Storage.Put
(ae.GasConsumed - setupPrice).Should().Be(1 * ApplicationEngine.StoragePrice); // = PUT basic fee
(ae.GasConsumed - setupPrice).Should().Be((sItem.Value.Length / 4 + 1) * ApplicationEngine.StoragePrice); // = PUT basic fee
}
}

Expand Down