Skip to content

Commit

Permalink
Merge c9cbda9 into b095cc6
Browse files Browse the repository at this point in the history
  • Loading branch information
keefertaylor committed Dec 16, 2020
2 parents b095cc6 + c9cbda9 commit e8fa4be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chain/tezos/contracts/WrappedTezosHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ export namespace WrappedTezosHelper {
const packedKey = TezosMessageUtils.encodeBigMapKey(Buffer.from(TezosMessageUtils.writePackedData(account, 'address'), 'hex'));
const mapResult = await TezosNodeReader.getValueForBigMapKey(server, mapid, packedKey);

if (mapResult === undefined) { throw new Error(`Map ${mapid} does not contain a record for ${account}`); }
if (mapResult === undefined) { return 0 }

const numberString = JSONPath({ path: '$.int', json: mapResult });
return Number(numberString);
Expand Down

0 comments on commit e8fa4be

Please sign in to comment.