"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.deriveRegisteredTokenAddress = void 0;
const web3_js_1 = require("@solana/web3.js");
const connect_sdk_solana_1 = require("@wormhole-foundation/connect-sdk-solana");
function deriveRegisteredTokenAddress(programId, mint) {
    return connect_sdk_solana_1.utils.deriveAddress([Buffer.from('mint'), new web3_js_1.PublicKey(mint).toBuffer()], programId);
}
exports.deriveRegisteredTokenAddress = deriveRegisteredTokenAddress;
//# sourceMappingURL=registeredToken.js.map