-
Notifications
You must be signed in to change notification settings - Fork 10
add support for the lib #17
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you please explain the changes in package.json
?
@@ -57,6 +57,7 @@ export class ContractExecutor { | |||
#index = 0; | |||
#verbosity: Verbosity | null = null; | |||
#name: string | null = null; | |||
#libs: Cell | null = null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
btw, what problem does this solve for you?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i need to mock a contract, which is a lib deployed on master chain. and i get the code from master chain. but i find that i need to pass the lib along with the code, so that it can work for me
"peerDependencies": { | ||
"@ton/core": ">=0.49.2", | ||
"@tact-lang/ton-abi": "^0.0.3", | ||
"@ton/core": "0.56.3", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why this is not a peer dependency anymore?
@bixia Can you please add a test showing your contribution behaves as expected? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we add libraries into the emulator, we should fully support them so that you can mock global masterchain libs, not just those for a single smart contract.
add support for the lib