Skip to content

Commit

Permalink
iface: allow zero RGB20Basic allocations in genesis
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Mar 25, 2024
1 parent 4b655c8 commit 6ea0ea3
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/interface/rgb20.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ const INSUFFICIENT_COVERAGE: u8 = 5;
const ISSUE_EXCEEDS_ALLOWANCE: u8 = 6;

const BASE_IFACE_ID: IfaceId = IfaceId::from_array([
0x8d, 0xc2, 0x19, 0x4f, 0x07, 0x7a, 0xb8, 0xf0, 0x40, 0xae, 0x1a, 0xbb, 0x59, 0x49, 0x1b, 0x13,
0x1b, 0x11, 0x80, 0xa5, 0x06, 0x8e, 0x40, 0xa0, 0x16, 0x09, 0x43, 0x0e, 0x25, 0x6c, 0xf6, 0xf9,
0x4b, 0x7e, 0xe2, 0x12, 0x52, 0xee, 0x26, 0xd3, 0x6e, 0x96, 0xd9, 0x67, 0x9c, 0x2e, 0xe0, 0x4c,
0x5e, 0x89, 0x84, 0x5b, 0x00, 0x68, 0xe3, 0x41, 0x00, 0x03, 0x8d, 0xb4, 0x41, 0x30, 0x47, 0x55,
]);

const INFLATIBLE_IFACE_ID: IfaceId = IfaceId::from_array([
0x1f, 0x2e, 0xbc, 0xd8, 0xfa, 0x2c, 0x3b, 0xa9, 0xc3, 0x56, 0x76, 0xa2, 0x6e, 0xbf, 0x3e, 0xb6,
0x61, 0xfa, 0x8f, 0x11, 0x96, 0x5d, 0x97, 0xed, 0xf6, 0xa1, 0x86, 0x15, 0xe2, 0x71, 0x3f, 0x62,
0xa9, 0x77, 0x86, 0x18, 0x5a, 0x5c, 0x37, 0x64, 0xcf, 0xa5, 0xbc, 0x2a, 0x4b, 0x88, 0xde, 0xa7,
0x8a, 0x6a, 0xeb, 0xa2, 0xde, 0x0d, 0x25, 0x52, 0x57, 0x42, 0xf4, 0x5a, 0x37, 0xaf, 0xff, 0xfb,
]);

pub fn base() -> Iface {
Expand All @@ -85,7 +85,7 @@ pub fn base() -> Iface {
fname!("issuedSupply") => Occurrences::Once,
},
assignments: tiny_bmap! {
fname!("assetOwner") => Occurrences::OnceOrMore,
fname!("assetOwner") => Occurrences::NoneOrMore,
},
valencies: none!(),
errors: tiny_bset! {
Expand Down Expand Up @@ -497,9 +497,9 @@ impl From<ContractIface> for Rgb20 {
impl IfaceWrapper for Rgb20 {
const IFACE_NAME: &'static str = LIB_NAME_RGB20;
const IFACE_ID: IfaceId = IfaceId::from_array([
0xf0, 0xb1, 0x76, 0x18, 0x99, 0xff, 0x09, 0x44, 0x99, 0x4b, 0xf1, 0x38, 0x8a, 0x19, 0xaa,
0x3f, 0xb5, 0x69, 0xd5, 0xa9, 0x4f, 0xa4, 0x46, 0x6d, 0x50, 0x3e, 0x0d, 0x99, 0xbb, 0xb3,
0x0c, 0x78,
0x19, 0x47, 0x64, 0xcf, 0xa2, 0xbf, 0x67, 0x35, 0x80, 0x9a, 0x9d, 0x53, 0x27, 0xb1, 0xf6,
0xba, 0x21, 0x14, 0xd4, 0x97, 0xbd, 0x74, 0x50, 0x00, 0xa2, 0x9a, 0x7e, 0x1e, 0xec, 0x50,
0x9b, 0xd4,
]);
}

Expand Down

0 comments on commit 6ea0ea3

Please sign in to comment.