Call.get_call_salt()
Return the value representing the salt parameter of the contract creation call
pool = address(new UniswapV3Pool{salt: keccak256(abi.encode(token0, token1, fee))}());new UniswapV3Pool{salt: keccak256(abi.encode(token0, token1, fee))}keccak256(abi.encode(token0, token1, fee))from glider import *
def query():
instructions = (
Contracts()
.with_name("UniswapV3PoolDeployer")
.functions()
.with_name("deploy")
.instructions()
.exec(10)
.filter(lambda x: x.is_new_contract())
)
for ins in instructions:
print(ins.get_value().get_callee_values()[0].get_call_salt())
print(ins.get_value().get_callee_values()[0].get_call_salt().expression)
return instructions
Last updated