5 eip-1167协议中的clone函数中mstore固定硬编码解读?

clone 函数中的汇编语言中的硬编码0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000怎么理解?

function clone(address implementation) internal returns (address instance) {
        assembly {
            let ptr := mload(0x40)
            mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000)
            mstore(add(ptr, 0x14), shl(0x60, implementation))
            mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000)
            instance := create(0, ptr, 0x37)
        }
        require(instance != address(0), "ERC1167: create failed");
    }
请先 登录 后评论

1 个回答

石Tou - 架构师
请先 登录 后评论
  • 1 关注
  • 0 收藏,2733 浏览
  • 石Tou 提出于 2022-03-20 01:24