neo-go
neo-go copied to clipboard
neotest.CompileFile does not add sourceURL to nef
Current Behavior
compiling a contract with CompileFile that has the sourceurl field set in the config will return Contract with a NEF that does not have the sourceurl set. If this output is then used to deploy the contract it will not reflect the actual config of the contract.
Expected Behavior
The NEF file returned in the Contract return from CompileFile has the source field that reflects the sourceurl of the config passed to CompileFile.
Steps to Reproduce
- create a smart contract
- compile with
neotest.CompileFile - evaluate the
Sourcefield of the returned value:Contract.NEF.Source - observe that it is always
""
Your Environment
- Version of the product used: v0.106.3-0.20240705103125-ed9817d35b29