diff --git a/src/channel.ts b/src/channel.ts index a2dce03..5ab60aa 100644 --- a/src/channel.ts +++ b/src/channel.ts @@ -255,6 +255,7 @@ async function getChannelTx( } export async function updateChannel(context: Context, channelPk?: string) { + return if (!channelPk) { logger.error('No channelPk provided'); return; diff --git a/src/packet.ts b/src/packet.ts index 9b99b6a..fe08c70 100644 --- a/src/packet.ts +++ b/src/packet.ts @@ -181,6 +181,7 @@ async function updateSendToAckGas>(conte } export async function updatePacket>(context: Virtual.Context, id: string) { + return let packet = await context.db.Packet.findUnique({id}) if (!packet) { console.warn('No packet found with id', id)