Skip to content

Commit

Permalink
chore: remove StateInit empty cells
Browse files Browse the repository at this point in the history
  • Loading branch information
krigga committed Mar 1, 2024
1 parent 5b9ff77 commit 8863710
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/network/createNetworkProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,6 @@ class NetworkProviderImpl implements NetworkProvider {
}

provider(address: Address, init?: StateInit | null): ContractProvider {
if (!init || (!init.code && !init.data)) {
init = { ...init, code: init?.code ?? new Cell(), data: init?.data ?? new Cell() };
}

const factory = (params: { address: Address, init?: StateInit | null }) => this.#tc.provider(params.address, params.init);
return new WrappedContractProvider(address, factory, init);
}
Expand Down

0 comments on commit 8863710

Please sign in to comment.