Skip to content

Commit 9561906

Browse files
committed
fixed forc-call transfer tests
1 parent 3e259d6 commit 9561906

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

forc-plugins/forc-client/src/op/call/transfer.rs

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,7 @@ mod tests {
128128
!response.tx_hash.is_empty(),
129129
"Transaction hash should be returned"
130130
);
131-
assert_eq!(
132-
response.result.unwrap(),
133-
"",
134-
"Result should be empty string"
135-
);
131+
assert!(response.result.is_none(), "Result should be none");
136132

137133
// Verify balance has increased by the transfer amount
138134
assert_eq!(
@@ -184,11 +180,7 @@ mod tests {
184180
!response.tx_hash.is_empty(),
185181
"Transaction hash should be returned"
186182
);
187-
assert_eq!(
188-
response.result.unwrap(),
189-
"",
190-
"Result should be empty string"
191-
);
183+
assert!(response.result.is_none(), "Result should be none");
192184

193185
// Verify balance has increased by the transfer amount
194186
let balance = provider

0 commit comments

Comments
 (0)