Skip to content

Commit 150a90e

Browse files
committed
fix
1 parent 1c1a272 commit 150a90e

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

yarn-project/sequencer-client/src/sequencer/sequencer.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ export class Sequencer {
193193
.map(tx => {
194194
// Currently can only have 1 new contract per tx
195195
const newContract = tx.data?.end.newContracts[0];
196-
if (newContract && tx.newContractPublicFunctions?.length) {
196+
if (newContract) {
197197
return new ContractDataAndBytecode(
198198
new ContractData(newContract.contractAddress, newContract.portalContractAddress),
199199
tx.newContractPublicFunctions,

yarn-project/types/src/contract_data.ts

-3
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,6 @@ export class ContractDataAndBytecode {
125125
/** Public keys of the contract. */
126126
public readonly publicKey: PublicKey,
127127
) {
128-
if (!publicFunctions.length) {
129-
throw Error('No public functions provided for ContractDataAndBytecode.');
130-
}
131128
this.bytecode = serializeBufferArrayToVector(publicFunctions.map(fn => fn.toBuffer()));
132129
}
133130

0 commit comments

Comments
 (0)