Closed MerlinB closed 3 years ago
sources property will auto gen when re compile the contract
Got it. The issue was that I didn't have the lastest VSCode extension.
you can upgrade to 0.4.13 , which have nice new feature.
Getting yet another error when loading from file:
Error: abi constructor params mismatch with args provided
. This doesn't happen when the output from compileContract
is used.
I have rechecked that I have the most recent version everywhere.
I think the issue is that the compiler extracts the asm out of the sourceMap
property (which is empty in the generated file) and ignores the asm
property in the generated file: https://github.com/sCrypt-Inc/scryptlib/blob/af2801be18a187525248d7a3173cdca49363f02e/src/compilerWrapper.ts#L518
This leads to asm
being empty in the loaded contract.
OK, i will fix it soon.
I think the issue is that the compiler extracts the asm out of the
sourceMap
property (which is empty in the generated file) and ignores theasm
property in the generated file:This leads to
asm
being empty in the loaded contract.
the bug has been fix at pr https://github.com/sCrypt-Inc/scryptlib/pull/54 you update your boilerplate or bump scryptlib to versoin 0.2.25
Thank you! Works fine.
This broke during one of the recent commits: When compiling a contract to
contract_desc.json
and then loading the file and passing the object tobuildContractClass
,desc2CompileResult
throws an error because it expects asources
property.