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

Added the argument "--token_mint" to emulate command #404

Merged
merged 9 commits into from
Dec 24, 2021
4 changes: 2 additions & 2 deletions proxy/common_neon/emulator_interactor.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import logging

from .errors import EthereumError
from ..environment import neon_cli
from ..environment import neon_cli, ETH_TOKEN_MINT_ID


logger = logging.getLogger(__name__)
Expand Down Expand Up @@ -31,4 +31,4 @@ def call_emulated(contract_id, caller_id, data=None, value=None):
def emulator(contract, sender, data, value):
data = data or "none"
value = value or ""
return neon_cli().call("emulate", sender, contract, data, value)
return neon_cli().call("emulate", "--token_mint", str(ETH_TOKEN_MINT_ID), sender, contract, data, value)