Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion tonsdk/contract/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ def create_code_cell(self):
return self.options["code"]

def create_data_cell(self):
return Cell()
if "data" not in self.options or self.options["data"] is None:
raise Exception("Contract: options.data is not defined")
return self.options["data"]

def create_init_external_message(self):
create_state_init = self.create_state_init()
Expand Down