Skip to content

Commit b8a8033

Browse files
committed
make block number optional
1 parent 26c33c4 commit b8a8033

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ext.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ pub trait Drand {
66
type ErrorCode = DrandErrorCode;
77

88
#[ink(function = 1101, handle_status = false)]
9-
fn random(block_number: <ink_env::DefaultEnvironment as Environment>::BlockNumber) -> [u8;32];
9+
fn random(block_number: Option<<ink_env::DefaultEnvironment as Environment>::BlockNumber>) -> [u8;32];
1010
}
1111

1212
#[derive(Debug, Copy, Clone, PartialEq, Eq, scale::Encode, scale::Decode)]

0 commit comments

Comments
 (0)