Send mobymask p2p messages to laconicd (#339)

* Use laconic ETH RPC endpoint for querying

* Run peer with message handler to send tx to laconic

* Handle revoke messages in mobymask p2p

* Set tx gasLimit explicitly for slow eth_estimateGas call

* Convert delegationHash to hex string before broadcasting json
This commit is contained in:
2023-03-17 10:26:47 +05:30
committed by GitHub
parent 787991c432
commit c44eff36b4
8 changed files with 237 additions and 28 deletions
+1 -1
View File
@@ -158,7 +158,7 @@ export class Indexer implements IndexerInterface {
if (this._serverMode === ETH_CALL_MODE) {
const contract = new ethers.Contract(token, this._abi, this._ethProvider);
// eth_call doesnt support calling method by blockHash https://eth.wiki/json-rpc/API#the-default-block-parameter
// eth_call doesn't support calling method by blockHash https://eth.wiki/json-rpc/API#the-default-block-parameter
const value = await contract.balanceOf(owner, { blockTag: blockHash });
result = {