Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possibility to include an other lua script #2

Open
glihm opened this issue Nov 2, 2023 · 0 comments
Open

Possibility to include an other lua script #2

glihm opened this issue Nov 2, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@glihm
Copy link
Owner

glihm commented Nov 2, 2023

Some users may split the lua scripts in different directories and then have a master script to execute it all.

RPC=...
ACCOUNT=...
PRIVKEY=...

declare(...)
deploy(...)

-- Variables RPC/ACCOUNT/PRIVKEY will be still valid as they belong to globals.
include("/path/contract2.lua")

-- ...
@glihm glihm added the enhancement New feature or request label Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant