0

I have to deploy a smartcontract from this url : https://blog.soliditylang.org/2021/08/11/solidity-0.8.7-release-announcement/

here code contain :

// SPDX-License-Identifier: none

pragma solidity >=0.8.0 <0.9.0;

contract Basefee {
    function basefee_global() external view returns (uint) {
        return block.basefee;
    }
    function basefee_inline_assembly() external view returns (uint ret) {
        assembly {
            ret := basefee()
        }
    }
}

i have test it on JavaScript (london) in remix get result 0, but after deploy at bsc testnet and call some function get error like that :

{
  "code": -32000,
  "message": "invalid opcode: opcode 0x48 not defined"
}

someone might solve this ?

1 Answer 1

0

I'm pretty sure the BSC doesnt implement EIP1559, and therefore the concept of "base fee" doesnt exist on it

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.