-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add executeBatch with values and tests and update ERC1271 support docs #2
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just have 1 request in a test
bytes[] memory func = new bytes[](1); | ||
func[0] = abi.encodeCall(LightSwitch.turnOn, ()); | ||
account.executeBatch(dest, value, func); | ||
assertTrue(lightSwitch.on()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could we add an assert here that the recipient contract's balance went up?
4f71d9b
to
be05fbc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
test/LightAccount.t.sol
Outdated
@@ -47,6 +47,13 @@ contract LightAccountTest is Test { | |||
assertTrue(lightSwitch.on()); | |||
} | |||
|
|||
function testExecuteWihValueCanBeCalledByOwner() public { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Super nit:
function testExecuteWihValueCanBeCalledByOwner() public { | |
function testExecuteWithValueCanBeCalledByOwner() public { |
be05fbc
to
f2297e7
Compare
No description provided.