-
Notifications
You must be signed in to change notification settings - Fork 9
feat: updated deposit to trigger #212
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -218,6 +218,7 @@ contract DeploySetup is SetupStore { | |||||
|
|
||||||
| // switchboard | ||||||
| switchboard.registerSwitchboard(); | ||||||
| switchboard.setEvmxConfig(evmxSlug, 1); // Set EVMX config for trigger payloads | ||||||
| switchboard.grantRole(WATCHER_ROLE, watcherEOA); | ||||||
| switchboard.grantRole(RESCUE_ROLE, address(socketOwner)); | ||||||
|
|
||||||
|
|
@@ -430,7 +431,7 @@ contract FeesSetup is DeploySetup { | |||||
| vm.expectEmit(true, true, true, false); | ||||||
| emit Deposited(chainSlug_, address(token), user_, credits_, native_); | ||||||
| hoax(watcherEOA); | ||||||
| feesManager.deposit(chainSlug_, address(token), user_, native_, credits_); | ||||||
| feesManager.deposit(abi.encode(chainSlug_, address(token), user_, native_, credits_)); | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix critical parameter order mismatch. The test encodes parameters as Apply this diff to fix the parameter order: - feesManager.deposit(abi.encode(chainSlug_, address(token), user_, native_, credits_));
+ feesManager.deposit(abi.encode(chainSlug_, address(token), user_, credits_, native_));📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
|
|
||||||
| assertEq( | ||||||
| feesManager.balanceOf(user_), | ||||||
|
|
||||||
Uh oh!
There was an error while loading. Please reload this page.