Skip to content

Commit

Permalink
Update src/contract/assembled_transaction.ts
Browse files Browse the repository at this point in the history
Better auto restore failure message.

Co-authored-by: Chad Ostrowski <[email protected]>
  • Loading branch information
BlaineHeffron and chadoh committed May 29, 2024
1 parent 7823b75 commit 00e2f3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/contract/assembled_transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ export class AssembledTransaction<T> {
return this;
}
throw new AssembledTransaction.Errors.RestoreFailure(
`You need to restore some contract state before invoking this method. Automatic restore failed:\n${JSON.stringify(result)}`
`Automatic restore failed! You set 'restore: true' but the attempted restore did not work. Result:\n${JSON.stringify(result)}`
);
}

Expand Down

0 comments on commit 00e2f3c

Please sign in to comment.