We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a482a33 commit 9c00ae0Copy full SHA for 9c00ae0
1 file changed
chain/near/src/trigger.rs
@@ -152,8 +152,6 @@ pub struct ReceiptWithOutcome {
152
153
#[cfg(test)]
154
mod tests {
155
- use std::convert::TryFrom;
156
-
157
use super::*;
158
159
use graph::{
@@ -407,8 +405,7 @@ mod tests {
407
405
}
408
406
409
fn big_int(input: u64) -> Option<codec::BigInt> {
410
- let value =
411
- BigInt::try_from(input).unwrap_or_else(|_| panic!("Invalid BigInt value {}", input));
+ let value = BigInt::from(input);
412
let bytes = value.to_signed_bytes_le();
413
414
Some(codec::BigInt { bytes })
0 commit comments