Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
austinabell committed May 10, 2021
1 parent eabf680 commit 51bcc3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion near-sdk/src/promise.rs
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ impl Promise {
match &mut other.subtype {
PromiseSubtype::Single(x) => {
let mut after = x.after.borrow_mut();
if after.is_none() {
if after.is_some() {
panic!("Cannot callback promise which is already scheduled after another");
}
*after = Some(self)
Expand Down

0 comments on commit 51bcc3b

Please sign in to comment.