From 6038fb35e208651fe3772bf863315a5e0e02fb12 Mon Sep 17 00:00:00 2001 From: ade <93547199+oxade@users.noreply.github.com> Date: Thu, 3 Mar 2022 01:03:22 -0500 Subject: [PATCH] Added error code (#628) --- sui_programmability/framework/sources/Collection.move | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sui_programmability/framework/sources/Collection.move b/sui_programmability/framework/sources/Collection.move index 7e227e148c5d5..f3cbad8c778ad 100644 --- a/sui_programmability/framework/sources/Collection.move +++ b/sui_programmability/framework/sources/Collection.move @@ -75,7 +75,7 @@ module Sui::Collection { public fun remove(c: &mut Collection, object: T): T { let idx = find(c, ID::id(&object)); if (Option::is_none(&idx)) { - abort EOBJECT_DOUBLE_ADD + abort EOBJECT_NOT_FOUND }; Vector::remove(&mut c.objects, *Option::borrow(&idx)); object