@exromany/lido-csm-sdk
Version:
[](https://github.com/lidofinance/lido-csm-sdk/blob/main/LICENSE.txt) [](h
10 lines • 395 B
JavaScript
import { isAddressEqual } from 'viem';
import { findIndexAndLeaf } from './find-index-and-leaf.js';
export const findAddressProof = (tree, address) => {
const [index, leaf] = findIndexAndLeaf(tree, (leaf) => isAddressEqual(leaf[0], address));
if (index !== undefined && leaf) {
return tree.getProof(index);
}
return null;
};
//# sourceMappingURL=find-address-proof.js.map