neo-project / neo-devpack-dotnet

NEO Development Pack
MIT License
79 stars 100 forks source link

Manifest permission compilation error #1070

Closed shargon closed 1 month ago

shargon commented 1 month ago

@Jim8y there is a bug when compile source together, the manifest takes whole the permissions for each contract.

You can see that Contract_ABIAttributes haven't got this permission

https://github.com/neo-project/neo-devpack-dotnet/blob/752a11bbf0ac5a429b9f4bbace27025f590b9448/tests/Neo.Compiler.CSharp.TestContracts/Contract_ABIAttributes.cs#L6-L9

https://github.com/neo-project/neo-devpack-dotnet/blob/752a11bbf0ac5a429b9f4bbace27025f590b9448/tests/Neo.Compiler.CSharp.UnitTests/UnitTest_ABI_Attributes.cs#L15

it take it from https://github.com/neo-project/neo-devpack-dotnet/blob/752a11bbf0ac5a429b9f4bbace27025f590b9448/tests/Neo.Compiler.CSharp.TestContracts/Contract_ContractCall.cs#L5

When I changed the address of this contract, all the artifact's manifest was changed

Jim8y commented 1 month ago

will check