Skip to content

Commit 0fc5cbd

Browse files
committed
fix: Don't log result of program method even on arc4 contracts
1 parent 209a327 commit 0fc5cbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/subcontexts/contract-context.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ export class ContractContext {
142142
const txns = [...(transactions ?? []), appTxn]
143143
return lazyContext.txn.ensureScope(txns).execute(() => {
144144
const returnValue = (orig as DeliberateAny).apply(target, args)
145-
if (isArc4 && returnValue !== undefined) {
145+
if (!isProgramMethod && isArc4 && returnValue !== undefined) {
146146
appTxn.logArc4ReturnValue(returnValue)
147147
}
148148
return returnValue

0 commit comments

Comments
 (0)