Skip to main content
1 vote
Accepted

Using ecrecover returns incorrect signer only for specific data (approx 0.3% of cases)

In your signMessage function, to get the bytes (Uint8Array) representation of the messageHash, you need to use the ethers.getBytes function instead of ethers.toBeArray, like: const signMessage = async ...
SYED ASAD KAZMI's user avatar
1 vote
Accepted

Create/set "subId" by createSubscription() and get "subId" vrfCoordinatorV2_5Mock calling by javascript in hardhat environment

Instead of events, it should be the logs array, inside the createSubIdReceipt object. So, replace this line: subscriptionId = createSubIdReceipt.events[0].args.subId with: subscriptionId = ...
SYED ASAD KAZMI's user avatar
1 vote
Accepted

Transaction is not going through even when bundle receipt returns 1

The problem might be due to the testnet because Flashbots relays on testnets are generally less stable compared to their mainnet counterparts. You can try to simulate your bundle before actually ...
SYED ASAD KAZMI's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible