Skip to content

Commit

Permalink
fix: use xapp isXCall internal view (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinhalliday authored Aug 1, 2024
1 parent 48ff2f5 commit eb02c55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GreetingBook.sol
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ contract GreetingBook is XApp {
constructor(address portal) XApp(portal, ConfLevel.Latest) {}

function greet(address user, string calldata _greeting) external xrecv {
require(omni.isXCall(), "GreetingBook: only xcalls");
require(isXCall(), "GreetingBook: only xcalls");

lastGreet = Greeting(user, _greeting, xmsg.sourceChainId, block.timestamp);
}
Expand Down

0 comments on commit eb02c55

Please sign in to comment.