Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Merge pull request #40 from ara-klaytn/L1finalisation
Browse files Browse the repository at this point in the history
Bug fixes
  • Loading branch information
praveen-kaia authored Jan 11, 2024
2 parents 17f34ee + 5742f87 commit daf7aa5
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"[css][html][javascript][javascriptreact][json][jsonc][typescript][typescriptreact][svelte]": {
"editor.codeActionsOnSave": []
}
}
1 change: 1 addition & 0 deletions aptos-tx-latency-measurement/sendtx_aptos.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ async function sendTx() {
try {
await uploadChoice(data);
} catch (err) {
const now = new Date();
sendSlackMsg(`${now}, failed to upload aptos, ${err.toString()}`);
console.log(
`failed to ${process.env.UPLOAD_METHOD === "AWS" ? "s3" : "gcs"}.upload!! Printing instead!`,
Expand Down
1 change: 1 addition & 0 deletions arbitrium-tx-latency-measurement/sendtx_arbitrium.js
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ async function sendTx() {
try {
await uploadChoice(data);
} catch (err) {
const now = new Date();
sendSlackMsg(`${now}, failed to upload arbitrium, ${err.toString()}`);

console.log(
Expand Down
2 changes: 1 addition & 1 deletion klaytn-tx-latency-measurement/sendtx_klaytn.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ async function checkBalance(addr) {
const caver = new Caver(process.env.CAVER_URL)
const balance = await caver.rpc.klay.getBalance(addr)
const balanceInKLAY = caver.utils.convertFromPeb(balance, 'KLAY')

const now = new Date();
if(parseFloat(balanceInKLAY) < parseFloat(process.env.BALANCE_ALERT_CONDITION_IN_KLAY)) {
sendSlackMsg(`${now}, Current balance of <${process.env.SCOPE_URL}/account/${addr}|${addr}> is less than ${process.env.BALANCE_ALERT_CONDITION_IN_KLAY} KLAY! balance=${balanceInKLAY}`)
}
Expand Down
2 changes: 1 addition & 1 deletion polkadot-tx-latency-measurement/sendtx_polkadot.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ async function sendTx(){
data.resourceUsedOfLatestBlock = Math.round(weightUsed * (10**(-9)))

// Create value transfer transaction.
const transfer = api.tx.balances.transfer(senderAddress, 0);
const transfer = api.tx.balances.transferAllowDeath(senderAddress, 0);

// Sign transaction.
await transfer.signAsync(sender);
Expand Down

0 comments on commit daf7aa5

Please sign in to comment.