misunderstanding tx.gasprice ?

ClodoClodo Posts: 4Member
edited June 20 in Solidity
This contract:

uint256 constant public maxGasPrice = 50000000000; ... require(tx.gasprice <= maxGasPrice);

Now, this tx: https://etherscan.io/tx/0x36aea85529b27cc2dd68d6343d9deb120c802ebe932d9c84ea6c961f46807d55

0.000005 Ether (5,000 Gwei)

if i understand correctly, it's 5000000000000 wei, x100 more than maxGasPrice.

What's wrong, my calculation or contract code? Thx.
Sign In or Register to comment.