Callable.new_contract_instructions()

Returns the function's/modifier's instructions that create a new contract.

new_contract_instructions() → Instructions

Query Example

from glider import *

def query():
  functions = Functions().with_name("deploy").exec(20)

  deployment_instructions = []
  for func in functions:
    for inst in func.new_contract_instructions().exec():
      deployment_instructions.append(inst)
      
  return deployment_instructions

Output Example

Last updated