Skip to content

Commit

Permalink
rename mainnet solana chain node
Browse files Browse the repository at this point in the history
  • Loading branch information
rbennettcw authored and ilijabojanovic committed Nov 21, 2024
1 parent 8ae2739 commit 5853926
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export async function getSolanaBalances(
const chainNode = await models.ChainNode.scope('withPrivateData').findOne({
where: {
balance_type: 'solana',
name: 'Solana (Mainnet Beta)',
name: 'Solana Mainnet',
},
});
if (!chainNode) {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
'use strict';

/** @type {import('sequelize-cli').Migration} */
module.exports = {
async up(queryInterface, Sequelize) {
await queryInterface.sequelize.query(
`UPDATE "ChainNodes" SET name = 'Solana Mainnet' WHERE name = 'Solana (Mainnet Beta)'`,
);
},

async down(queryInterface, Sequelize) {
await queryInterface.sequelize.query(
`UPDATE "ChainNodes" SET name = 'Solana (Mainnet Beta)' WHERE name = 'Solana Mainnet'`,
);
},
};

0 comments on commit 5853926

Please sign in to comment.