Skip to content

Commit

Permalink
Merge pull request #174 from multiversx/contract-templates-fix
Browse files Browse the repository at this point in the history
Fix erdpy contract templates
  • Loading branch information
popenta committed Jan 5, 2023
2 parents 876ebce + 14aced8 commit 175406b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion erdpy/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def get_defaults() -> Dict[str, Any]:
"chainID": "T",
"txVersion": "1",
"dependencies.vmtools.tag": "latest",
"dependencies.elrond_wasm_rs.tag": "latest",
"dependencies.mx_sdk_rs.tag": "latest",
"dependencies.vmtools.urlTemplate.linux": "https://github.com/ElrondNetwork/wasm-vm/archive/{TAG}.tar.gz",
"dependencies.vmtools.urlTemplate.osx": "https://github.com/ElrondNetwork/wasm-vm/archive/{TAG}.tar.gz",
"dependencies.llvm.tag": "v9-19feb",
Expand Down
16 changes: 8 additions & 8 deletions erdpy/projects/templates_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,25 @@

def get_templates_repositories():
timestamp = int(time.time())
examples_rs_tag = config.get_dependency_tag('elrond_wasm_rs')
examples_rs_tag = config.get_dependency_tag('mx_sdk_rs')

if examples_rs_tag == 'latest':
examples_rs_tag = query_latest_release_tag('ElrondNetwork/elrond-wasm-rs')
examples_rs_tag = query_latest_release_tag('multiversx/mx-sdk-rs')

examples_rs_tag_no_v = remove_initial_v_from_version(examples_rs_tag)

return [
TemplatesRepository(
key="sc-examples",
url=f"https://github.com/ElrondNetwork/sc-examples/archive/master.zip?t={timestamp}",
github="ElrondNetwork/sc-examples",
relative_path="sc-examples-master"
url=f"https://github.com/multiversx/mx-sc-examples/archive/master.zip?t={timestamp}",
github="multiversx/mx-sc-examples",
relative_path="mx-sc-examples-master"
),

TemplatesRepository(
key="elrond-wasm-rs",
url=f"https://github.com/ElrondNetwork/elrond-wasm-rs/archive/{examples_rs_tag}.zip?t={timestamp}",
github="ElrondNetwork/elrond-wasm-rs",
key="mx-sdk-rs",
url=f"https://github.com/multiversx/mx-sdk-rs/archive/{examples_rs_tag}.zip?t={timestamp}",
github="multiversx/mx-sdk-rs",
relative_path=f"mx-sdk-rs-{examples_rs_tag_no_v}/contracts/examples"
)
]
Expand Down

0 comments on commit 175406b

Please sign in to comment.