Skip to content

Commit ed4689c

Browse files
authored
harness: Clone accounts from transaction context instead of take (#80)
1 parent f01db90 commit ed4689c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

harness/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,8 @@ impl Mollusk {
234234
let resulting_account = transaction_context
235235
.get_account_at_index(index)
236236
.unwrap()
237-
.take()
237+
.borrow()
238+
.clone()
238239
.into();
239240
(*pubkey, resulting_account)
240241
})

0 commit comments

Comments
 (0)