Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
ccc780bc
Commit
ccc780bc
authored
Jul 21, 2022
by
Mark Tyneway
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
contracts-bedrock: print receipt after deposit
parent
483e27c7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
deposits.ts
packages/contracts-bedrock/tasks/deposits.ts
+9
-6
No files found.
packages/contracts-bedrock/tasks/deposits.ts
View file @
ccc780bc
...
@@ -99,16 +99,19 @@ task('deposit', 'Deposits funds onto L2.')
...
@@ -99,16 +99,19 @@ task('deposit', 'Deposits funds onto L2.')
if
(
expected
)
{
if
(
expected
)
{
console
.
log
(
'
Deposit success
'
)
console
.
log
(
'
Deposit success
'
)
console
.
log
(
JSON
.
stringify
(
expected
,
null
,
2
))
console
.
log
(
JSON
.
stringify
(
expected
,
null
,
2
))
console
.
log
(
'
Receipt:
'
)
const
l2Receipt
=
await
l2Provider
.
getTransactionReceipt
(
hash
)
console
.
log
(
JSON
.
stringify
(
l2Receipt
,
null
,
2
))
break
break
}
}
if
(
i
%
100
===
0
)
{
const
postL2Balance
=
await
l2Provider
.
getBalance
(
to
)
const
postL2Balance
=
await
l2Provider
.
getBalance
(
to
)
if
(
postL2Balance
.
gt
(
preL2Balance
))
{
if
(
postL2Balance
.
gt
(
preL2Balance
))
{
console
.
log
(
console
.
log
(
`Unexpected balance increase without detecting deposit transaction`
`Unexpected balance increase without detecting deposit transaction`
)
)
}
}
if
(
i
%
100
===
0
)
{
const
block
=
await
l2Provider
.
getBlock
(
'
latest
'
)
const
block
=
await
l2Provider
.
getBlock
(
'
latest
'
)
console
.
log
(
`latest block
${
block
.
number
}
:
${
block
.
hash
}
`
)
console
.
log
(
`latest block
${
block
.
number
}
:
${
block
.
hash
}
`
)
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment