Skip to content

Commit

Permalink
__line__
Browse files Browse the repository at this point in the history
  • Loading branch information
dangell7 committed May 30, 2024
1 parent 8d4e1d9 commit 8731f37
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions contractsjs/oracle/oracle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ const Hook = (arg: number) => {
}

const txnId = otxn_id(0) as number[]
ASSERT(txnId.length === 32, 25)
ASSERT(txnId.length === 32, 23)

ASSERT(otxn_slot(1) === 1, 27)
ASSERT(slot_subfield(1, sfBlob, 2) === 2, 28)
ASSERT(otxn_slot(1) === 1, 25)
ASSERT(slot_subfield(1, sfBlob, 2) === 2, 26)

const buffer = slot(2) as number[]
ASSERT(buffer.length > 0, 31)
ASSERT(buffer.length > 0, 39)

let len = buffer[0]
let ptr = 1
Expand All @@ -43,7 +43,7 @@ const Hook = (arg: number) => {
ptr += 48
}

return accept('oracle.c: Updated.', 0)
return accept('oracle.c: Updated.', 46)
}

// REQUIRED FOR ESBUILD
Expand Down

0 comments on commit 8731f37

Please sign in to comment.