File tree 2 files changed +1
-4
lines changed
sequencer-client/src/sequencer
2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -193,7 +193,7 @@ export class Sequencer {
193
193
. map ( tx => {
194
194
// Currently can only have 1 new contract per tx
195
195
const newContract = tx . data ?. end . newContracts [ 0 ] ;
196
- if ( newContract && tx . newContractPublicFunctions ?. length ) {
196
+ if ( newContract ) {
197
197
return new ContractDataAndBytecode (
198
198
new ContractData ( newContract . contractAddress , newContract . portalContractAddress ) ,
199
199
tx . newContractPublicFunctions ,
Original file line number Diff line number Diff line change @@ -125,9 +125,6 @@ export class ContractDataAndBytecode {
125
125
/** Public keys of the contract. */
126
126
public readonly publicKey : PublicKey ,
127
127
) {
128
- if ( ! publicFunctions . length ) {
129
- throw Error ( 'No public functions provided for ContractDataAndBytecode.' ) ;
130
- }
131
128
this . bytecode = serializeBufferArrayToVector ( publicFunctions . map ( fn => fn . toBuffer ( ) ) ) ;
132
129
}
133
130
You can’t perform that action at this time.
0 commit comments