Skip to content

Commit

Permalink
Remove logs from StableBTreeMap.insert
Browse files Browse the repository at this point in the history
  • Loading branch information
dansteren committed Sep 26, 2023
1 parent 08ceb35 commit cde7785
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/lib_new/stable_b_tree_map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,29 +80,18 @@ export function StableBTreeMap<Key, Value>(
key: TypeMapping<Key>,
value: TypeMapping<Value>
): Opt<TypeMapping<Value>> {
console.log('keyIdl');
console.log(keyIdl);
console.log('valueIdl');
console.log(valueIdl);

const candidEncodedMemoryId = new Uint8Array(
IDL.encode([IDL.Nat8], [memoryId])
).buffer;

console.log(0);

const candidEncodedKey = new Uint8Array(
IDL.encode([keyIdl as any], [key])
).buffer;

console.log(1);

const candidEncodedValue = new Uint8Array(
IDL.encode([valueIdl as any], [value])
).buffer;

console.log(2);

const candidEncodedResultValue = (
globalThis as any
)._azleIc.stableBTreeMapInsert(
Expand All @@ -111,8 +100,6 @@ export function StableBTreeMap<Key, Value>(
candidEncodedValue
);

console.log(3);

if (candidEncodedResultValue === undefined) {
return [];
} else {
Expand Down

0 comments on commit cde7785

Please sign in to comment.