viem
Version:
21 lines • 679 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.formatProof = formatProof;
const index_js_1 = require("../index.js");
function formatStorageProof(storageProof) {
return storageProof.map((proof) => ({
...proof,
value: BigInt(proof.value),
}));
}
function formatProof(proof) {
return {
...proof,
balance: proof.balance ? BigInt(proof.balance) : undefined,
nonce: proof.nonce ? (0, index_js_1.hexToNumber)(proof.nonce) : undefined,
storageProof: proof.storageProof
? formatStorageProof(proof.storageProof)
: undefined,
};
}
//# sourceMappingURL=proof.js.map
;