Skip to content

Commit

Permalink
skip if not present
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisCarriere committed Jan 30, 2024
1 parent eb6e214 commit a76c650
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/wax-delband.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ emitter.on("session", (session) => {
// Stream Blocks
emitter.on("anyMessage", (message, cursor, clock) => {
for ( const dbOp of message.dbOps ?? [] ) {
if ( !dbOp.newData ) continue;
const data = Buffer.from(dbOp.newData, "base64").toString("hex");
const decoded = Serializer.decode({data, abi, type: "delegated_bandwidth"});
const delband = {};
Expand Down

0 comments on commit a76c650

Please sign in to comment.