Skip to content

Commit

Permalink
[OR-1849] resolve actions
Browse files Browse the repository at this point in the history
  • Loading branch information
rlgns98kr committed Sep 11, 2024
1 parent f11b784 commit 93f1aee
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/go-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
if: always()
uses: actions/upload-artifact@v4
with:
name: test-results
name: test-results-${{ matrix.module }}
path: /tmp/test-results

cannon-go-lint-and-test:
Expand Down Expand Up @@ -120,5 +120,5 @@ jobs:
if: always()
uses: actions/upload-artifact@v4
with:
name: test-results
name: test-results-lint
path: /tmp/test-results
9 changes: 7 additions & 2 deletions packages/tokamak/sdk/tasks/approve-deposit-ton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -358,12 +358,17 @@ const approveAndDepositTONViaOP = async (amount: NumberLike) => {
l1TONBalance = await tonContract.balanceOf(l1Wallet.address)
console.log('l1 ton balance after: ', l1TONBalance.toString())
while (true) {
const l2BalanceAfter = await LegacyERC20NativeToken.balanceOf(l1Wallet.address)
const l2BalanceAfter = await LegacyERC20NativeToken.balanceOf(
l1Wallet.address
)
if (l2BalanceAfter.eq(l2BalancePrev)) {
await sleep(1000)
continue
}
console.log('l2 LegacyERC20NativeToken balance: ', l2BalanceAfter.toString())
console.log(
'l2 LegacyERC20NativeToken balance: ',
l2BalanceAfter.toString()
)
console.log(
'added LegacyERC20NativeToken balance: ',
l2BalanceAfter.sub(l2BalancePrev).toString()
Expand Down
13 changes: 5 additions & 8 deletions packages/tokamak/sdk/tasks/portals.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { task, types } from 'hardhat/config'
import { HardhatRuntimeEnvironment } from 'hardhat/types'
import '@nomiclabs/hardhat-ethers'
import 'hardhat-deploy'
import { BigNumber, BytesLike, ethers } from 'ethers'
import 'hardhat-deploy'
import { task, types } from 'hardhat/config'
import { HardhatRuntimeEnvironment } from 'hardhat/types'

import { Portals, NumberLike, asL2Provider, MessageStatus } from '../src'
import { asL2Provider, MessageStatus, NumberLike, Portals } from '../src'

console.log('Setup task...')

Expand Down Expand Up @@ -540,10 +540,7 @@ task(
await withdrawViaBedrockMessagePasserV2(args.amount)
})

task(
'calculate-hash',
'Calculate relayed deposit hash'
)
task('calculate-hash', 'Calculate relayed deposit hash')
.addParam('amount', 'Withdrawal amount', '1', types.string)
.setAction(async (args, hre) => {
console.log('update addresses')
Expand Down

0 comments on commit 93f1aee

Please sign in to comment.