estimateGas does not support eip-4844.
Ethers Version
6.12.1
Search Terms
No response
Describe the Problem
When obtaining the gasLimit of eip-4844 type transaction, need to bring blobVersionedHashes.
blobhash estimated gas error.
bytes32 dataHash = blobhash(blobIdx);
require(dataHash != 0, "failed to get blob hash");
Code Snippet
No response
Contract ABI
No response
Errors
No response
Environment
Ethereum (mainnet/ropsten/rinkeby/goerli)
Environment (Other)
No response
I believe you absolutely correct. I will experiment with this and get a fix asap.
FYI, I've deployed the follow contract to sepolia:
contract TestBolb {
function test() public view returns (bytes32) {
bytes32 dataHash = blobhash(0);
require(dataHash != 0, "failed to get blob hash");
return dataHash;
}
}
which indeed demonstrates the issue.
The biggest issue right now is that Etherscan's proxy API doesn't support passing hashes along. I'll contact them, but for now will throw an unsupported operations error in the event someone tries passing blobVersionedHashes along to that particular provider.