Helper to create an address from a `u64` index.
(index: u64)
| 528 | |
| 529 | /// Helper to create an address from a `u64` index. |
| 530 | pub fn addr(index: u64) -> Address { |
| 531 | let mut bytes = [0u8; 20]; |
| 532 | bytes[12..20].copy_from_slice(&index.to_be_bytes()); |
| 533 | Address::from(bytes) |
| 534 | } |
| 535 | |
| 536 | /// Helper to build a factory game entry. |
| 537 | pub fn factory_game(index: u64, game_type: u32) -> GameAtIndex { |
no outgoing calls
no test coverage detected