Skip to content

Commit

Permalink
Add master contract address to account info
Browse files Browse the repository at this point in the history
  • Loading branch information
d0rich committed Nov 15, 2023
1 parent 4d90290 commit cf7307e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions contracts/contracts/d_social_network_account.tact
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ contract DSocialNetworkAccount with NftCollection, NftCollectionRoyaltyExtention
return AccountInfo{
id: self.account_id,
owner: self.owner,
master_contract: self.master_contract,
collection_content: self.collection_content,
is_initialized: self.is_initialized
};
Expand Down
4 changes: 4 additions & 0 deletions contracts/contracts/d_social_network_master.tact
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ contract DSocialNetworkMaster with Deployable, OwnableTransferable, Accounting
self.owner = ctx.sender;
}

get fun get_version(): String {
return self.version;
}

get fun get_accounts_count(): Int {
return self.next_account_index;
}
Expand Down
1 change: 1 addition & 0 deletions contracts/contracts/messages_d.tact
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ message InitializeAccount {

struct AccountInfo {
id: Int;
master_contract: Address;
owner: Address;
collection_content: NftCollectionMetadata;
is_initialized: Bool;
Expand Down

0 comments on commit cf7307e

Please sign in to comment.