Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix problem with simulate deploy transaction #279
  • Loading branch information
Semen Medvedev committed Nov 11, 2021
commit f71075696684f37de07677d1bce29e8afd0f07fb
8 changes: 4 additions & 4 deletions proxy/plugin/solana_rest_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,10 +262,10 @@ def eth_call(self, obj, tag):
"""
if not obj['data']: raise Exception("Missing data")
try:
caller_id = obj['from'] if 'from' in obj else "0x0000000000000000000000000000000000000000"
contract_id = obj['to']
data = obj['data'] if 'data' in obj else "None"
value = obj['value'] if 'value' in obj else ""
caller_id = obj.get('from', "0x0000000000000000000000000000000000000000")
contract_id = obj.get('to', 'deploy')
data = obj.get('data', "None")
value = obj.get('value', '')
return "0x"+call_emulated(contract_id, caller_id, data, value)['result']
except Exception as err:
logger.debug("eth_call %s", err)
Expand Down