I test the solidity code like this
pragma solidity ^0.8.4;
contract MyContract {
struct User {
bool exists;
address owner;
}
mapping(uint256 => string) public names;
mapping(address => User) public userList;
constructor() public {
names[1] = "asdddddd";
names[2] = "asdf";
names[3] = "lee";
userList[msg.sender].owner = msg.sender;
userList[msg.sender].exists = true;
}
}
I check the transaction cost and execution cost in remix
gas : 8000000gas
transcation cost : 8000000gas
execution cost : 301829 gas
I understand the exe cost.. but why transaction cost fixed(8,000,000)? I want to check real transaction cost.
How do I do this?


