Skip to content

Commit

Permalink
fix(deps): uncomment update schema
Browse files Browse the repository at this point in the history
  • Loading branch information
muhammadusmanuet committed Dec 10, 2024
1 parent cbf347f commit 5be6fc2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/deps/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export async function configDeps(
new NonceManager(stakingSigner),
);
const orm = await MikroORM.init(MikroOrmConfig);
// await orm.schema.updateSchema();
await orm.schema.updateSchema();
await runMigrationsIfAny(orm.getMigrator(), logger);
const em = orm.em;
const serverLinkHandler = process.env.SERVER_LINK
Expand Down
9 changes: 7 additions & 2 deletions src/handler/chains/casper/utils/getBalance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,17 @@ export default async function getBalance(
signer: Keys.Ed25519,
) {
try {
console.log(
"casper",
signer.publicKey.toHex(),
signer.publicKey.toAccountHashStr(),
);
const balance = await useMutexAndRelease(
fetchProvider,
async (provider) => {
return await provider.nodeClient.queryBalance(
PurseIdentifier.MainPurseUnderAccountHash,
signer.publicKey.toAccountHashStr(),
PurseIdentifier.MainPurseUnderPublicKey,
signer.publicKey.toHex(),
);
},
);
Expand Down

0 comments on commit 5be6fc2

Please sign in to comment.