neo-go icon indicating copy to clipboard operation
neo-go copied to clipboard

neotest.CompileFile does not add sourceURL to nef

Open ixje opened this issue 6 months ago • 0 comments

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

  1. create a smart contract
  2. compile with neotest.CompileFile
  3. evaluate the Source field of the returned value: Contract.NEF.Source
  4. observe that it is always ""

Your Environment

  • Version of the product used: v0.106.3-0.20240705103125-ed9817d35b29

ixje avatar Aug 04 '24 12:08 ixje