scripts/create-token.py: support solc version 0.8.26

This commit is contained in:
The MMGen Project 2024-07-08 10:51:21 +00:00
commit 5f22d2fbde
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
9 changed files with 17 additions and 17 deletions

View file

@ -40,7 +40,7 @@ class TokenData:
token_data = TokenData()
req_solc_ver_pat = '^0.8.6'
req_solc_ver_pat = '^0.8.25'
opts_data = {
'text': {
@ -244,7 +244,7 @@ def check_solc_version():
return False
def compile_code(cfg,code):
cmd = ['solc','--optimize','--bin','--overwrite']
cmd = ['solc', '--optimize', '--bin', '--overwrite', '--evm-version=constantinople']
if not cfg.stdout:
cmd += ['--output-dir', cfg.outdir or '.']
cmd += ['-']