From ca549258b8d1fb7e14f03b8d8a2ccf94c1937bac Mon Sep 17 00:00:00 2001 From: Protryon Date: Tue, 26 Jan 2021 20:07:21 -0800 Subject: [PATCH] blake2s unwrap muts --- compiler/src/prelude/blake2s.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler/src/prelude/blake2s.rs b/compiler/src/prelude/blake2s.rs index dab1fd0bb4..3b11f1cee4 100644 --- a/compiler/src/prelude/blake2s.rs +++ b/compiler/src/prelude/blake2s.rs @@ -31,7 +31,8 @@ use snarkvm_models::{ pub struct Blake2s; -fn unwrap_argument>(arg: ConstrainedValue) -> Vec { +fn unwrap_argument>(mut arg: ConstrainedValue) -> Vec { + arg.get_inner_mut(); if let ConstrainedValue::Array(args) = arg { assert_eq!(args.len(), 32); // asg enforced args.into_iter()