Skip to content

Commit

Permalink
Added error code (MystenLabs#628)
Browse files Browse the repository at this point in the history
  • Loading branch information
oxade authored Mar 3, 2022
1 parent 40c9ee0 commit 6038fb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sui_programmability/framework/sources/Collection.move
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ module Sui::Collection {
public fun remove<T: key>(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
Expand Down

0 comments on commit 6038fb3

Please sign in to comment.