Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
create eth_getStorageAt prototype
  • Loading branch information
ivanl committed Nov 16, 2021
commit d3563cb1c464b2d62a8667d287e765346c5f45e9
4 changes: 4 additions & 0 deletions proxy/plugin/solana_rest_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,10 @@ def getBlockBySlot(self, slot, full):
}
return ret

def eth_getStorageAt(self, account, position, block_identifier):
print(f"eth_getStorageAt: {account}, {position}, {block_identifier}")
return 0

def eth_getBlockByHash(self, trx_hash, full):
"""Returns information about a block by hash.
trx_hash - Hash of a block.
Expand Down
5 changes: 5 additions & 0 deletions proxy/test_eth_sendRawTransaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,11 @@ def test_07_execute_long_transaction(self):
print('times_to_calculate:', times_to_calculate)
print('time_duration:', time_duration)

def test_get_storage_at(self):
proxy.eth.get_storage_at(self.storage_contract.address,
Web3.keccak("number"),
"latest")


if __name__ == '__main__':
unittest.main()