Skip to content

Phase 0: replace unwrap with proper error handling #2386

@vihu

Description

@vihu

In processors/resource/allocate.rs:156, resource.allocate().unwrap() will panic on-chain if allocation fails. Should return ProgramError::Custom with BitmapFull error code.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions