Skip to content

Commit

Permalink
chore: self review tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
neilcampbell committed Nov 6, 2024
1 parent e1fc96d commit 604be62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types/app-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1064,7 +1064,7 @@ export class AppClient {
sender,
})

if (!result.return) {
if (result.return === undefined) {
throw new Error('Default value method call did not return a value')
}
if (typeof result.return === 'object' && !(result.return instanceof Uint8Array) && !Array.isArray(result.return)) {
Expand Down

0 comments on commit 604be62

Please sign in to comment.