Home
Categories
Attack_Events_Analysis
Basic_Knowledge
Utils
CTFS
DEFI
PoC
Experience
Archives
About
Light
More
Tags
Friends
Home
Categories
Attack_Events_Analysis
Basic_Knowledge
Utils
CTFS
DEFI
PoC
Experience
Archives
About
Light
More
Tags
Friends
学会七十二变,应对八十一难
Home
Categories
Archives
About
Code
Resource
uing of opcode log
前言 在刷chainflag-opcode-BoxGame发现这个很有趣,记录下。 Log1用法 log1(offset, size, topic): offset: byte offset in the memory in bytes. size: byte size to copy. topic1: 32-byte value. 以 event NewValue(uint256)...
2023-10-06
Basic_Knowledge
Solidity
Basic_Knowledge
Solidity
阅读全文
creationcode & runtimecode
bytecode, initcode,deploycode bytecode = type(Contract_Name).creationCode = init code + runtimeCode type(Contract_Name).runtimeCode = runtimeCode extcodecopy => runtimecode ...
2023-10-04
Basic_Knowledge
Solidity
Basic_Knowledge
Solidity
阅读全文
using 的使用
1.语法1using A for * // 效果是,库A中的函数被附着在做任意的类型上 指令using A for B;用来附着库里定义的函数(从库A)到任意类型B。这些函数将会默认接收调用函数对象的实例作为第一个参数。 2. 示例代码2.1 Math库合约:123456789101112// 声明一个库合约library Math { // 定义一个加法函数 f...
2023-07-08
Basic_Knowledge
Solidity
Basic_Knowledge
Solidity
阅读全文
粘贴文本
全选文本
剪切文本
复制文本
站内搜索
必应搜索
新标签页打开
复制链接地址
复制图片
谷歌识图
常见问题
本站源码
夜间模式
打印页面
阅读模式