From 96c72a60d382e8d2ba1ca890a67bef34a35f0343 Mon Sep 17 00:00:00 2001 From: ygd58 Date: Sat, 6 Jun 2026 18:35:02 +0200 Subject: [PATCH] fix: update deprecated ContractRollback to gl.UserError in docs --- pages/api-references/genlayer-test/direct.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/api-references/genlayer-test/direct.md b/pages/api-references/genlayer-test/direct.md index 0c02ea42..384bbc66 100644 --- a/pages/api-references/genlayer-test/direct.md +++ b/pages/api-references/genlayer-test/direct.md @@ -259,7 +259,7 @@ Stop the current prank. Context manager expecting the next call to revert. -Catches ContractRollback (gl.rollback) and any Exception raised +Catches gl.UserError and any Exception raised by contract code (ValueError, RuntimeError, etc.). If *message* is given, the exception text must contain it.