Skip to content

Commit

Permalink
Apply automatic changes
Browse files Browse the repository at this point in the history
  • Loading branch information
robertlincecum committed Jul 10, 2024
1 parent 4efb839 commit eb6ae6c
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 14 deletions.
7 changes: 3 additions & 4 deletions dist/quais.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ function isCallException(error) {
* @param {string} message - The error message.
* @param {ErrorCode} code - The error code.
* @param {ErrorInfo<T>} [info] - Additional properties for the error.
*
* @returns {T} The new error.
*/
function makeError(message, code, info) {
Expand Down Expand Up @@ -19147,10 +19146,10 @@ class QuaiTransaction extends AbstractTransaction {
if (!this.originZone) {
throw new Error('Invalid Zone for from address');
}
if (!(this.from && this.to)) {
throw new Error('Missing from or to address');
if (!this.from) {
throw new Error('Missing from address');
}
const isSameLedger = isQuaiAddress(this.from) === isQuaiAddress(this.to);
const isSameLedger = !this.to || isQuaiAddress(this.from) === isQuaiAddress(this.to);
if (this.isExternal && !isSameLedger) {
throw new Error('Cross-zone & cross-ledger transactions are not supported');
}
Expand Down
2 changes: 1 addition & 1 deletion dist/quais.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/quais.min.js

Large diffs are not rendered by default.

7 changes: 3 additions & 4 deletions dist/quais.umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,6 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
* @param {string} message - The error message.
* @param {ErrorCode} code - The error code.
* @param {ErrorInfo<T>} [info] - Additional properties for the error.
*
* @returns {T} The new error.
*/
function makeError(message, code, info) {
Expand Down Expand Up @@ -19170,10 +19169,10 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
if (!this.originZone) {
throw new Error('Invalid Zone for from address');
}
if (!(this.from && this.to)) {
throw new Error('Missing from or to address');
if (!this.from) {
throw new Error('Missing from address');
}
const isSameLedger = isQuaiAddress(this.from) === isQuaiAddress(this.to);
const isSameLedger = !this.to || isQuaiAddress(this.from) === isQuaiAddress(this.to);
if (this.isExternal && !isSameLedger) {
throw new Error('Cross-zone & cross-ledger transactions are not supported');
}
Expand Down
2 changes: 1 addition & 1 deletion dist/quais.umd.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/quais.umd.min.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion dist/wordlists-extra.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/wordlists-extra.js.map

Large diffs are not rendered by default.

0 comments on commit eb6ae6c

Please sign in to comment.