-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Constrain token payment by auth entries (#31)
* adds checks for address credentials auth entries, auth entries contractId mismatch, and sub invocations to token payment simulation * capitalize token sim error strings * remove check for sorobanCredentialsAddress, already covered by the previous check * adds explicit check for op type in token sim, updates jwt expired error from mercury, removes unused token sim error * reorganized token details getter to continue on error to get a tokens details * tweak error display text for auth sub invocations
- Loading branch information
1 parent
db55b6b
commit 4ffc981
Showing
4 changed files
with
45 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export const ERROR = { | ||
ACCOUNT_NOT_SOURCE: | ||
"Transfer contains authorization entry for a different account", | ||
AUTH_SUB_INVOCATIONS: | ||
"Transfer authorizes sub-invocations to another contract", | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters