Пример #1
0
    def generate_contract_address(self, stack_data: CreateOpcodeStackData,
                                  call_data: bytes,
                                  computation: BaseComputation) -> Address:

        computation.state.account_db.increment_nonce(
            computation.msg.storage_address)
        return generate_safe_contract_address(computation.msg.storage_address,
                                              stack_data.salt, call_data)
Пример #2
0
    def generate_contract_address(self, stack_data: CreateOpcodeStackData,
                                  call_data: bytes,
                                  computation: BaseComputation) -> Address:

        return generate_safe_contract_address(computation.msg.storage_address,
                                              stack_data.salt, call_data)