Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
openzeppelin-contracts-upgradeable
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
俞永鹏
openzeppelin-contracts-upgradeable
Commits
3da0cf69
Unverified
Commit
3da0cf69
authored
Aug 03, 2021
by
William Entriken
Committed by
GitHub
Aug 03, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Uncomment assertion in ERC2771Context.test.js (#2796)
parent
e1c0f3ea
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
ERC2771Context.test.js
test/metatx/ERC2771Context.test.js
+2
-6
No files found.
test/metatx/ERC2771Context.test.js
View file @
3da0cf69
...
...
@@ -76,9 +76,7 @@ contract('ERC2771Context', function (accounts) {
};
const
sign
=
ethSigUtil
.
signTypedMessage
(
this
.
wallet
.
getPrivateKey
(),
{
data
:
{
...
this
.
data
,
message
:
req
}
});
// rejected by lint :/
// expect(await this.forwarder.verify(req, sign)).to.be.true;
expect
(
await
this
.
forwarder
.
verify
(
req
,
sign
)).
to
.
equal
(
true
);
const
{
tx
}
=
await
this
.
forwarder
.
execute
(
req
,
sign
);
await
expectEvent
.
inTransaction
(
tx
,
ERC2771ContextMock
,
'Sender'
,
{
sender
:
this
.
sender
});
...
...
@@ -101,9 +99,7 @@ contract('ERC2771Context', function (accounts) {
};
const
sign
=
ethSigUtil
.
signTypedMessage
(
this
.
wallet
.
getPrivateKey
(),
{
data
:
{
...
this
.
data
,
message
:
req
}
});
// rejected by lint :/
// expect(await this.forwarder.verify(req, sign)).to.be.true;
expect
(
await
this
.
forwarder
.
verify
(
req
,
sign
)).
to
.
equal
(
true
);
const
{
tx
}
=
await
this
.
forwarder
.
execute
(
req
,
sign
);
await
expectEvent
.
inTransaction
(
tx
,
ERC2771ContextMock
,
'Data'
,
{
data
,
integerValue
,
stringValue
});
...
...
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