Skip to content

Commit

Permalink
fix(sdk): fix state mutability (#901)
Browse files Browse the repository at this point in the history
  • Loading branch information
lwedge99 committed Jul 22, 2024
1 parent 406ff7d commit 51942ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sdk/src/eth/codegen/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export function getFullSignatureForFunction(fn: FunctionDeclaration): string {
}

export function getFullSignatureWithOutputForFn(fn: FunctionDeclaration) {
return `${fn.name}(${fn.inputs.map((i) => getArgumentForSignature(i)).join(', ')}) ${fn.stateMutability} returns (${fn.outputs
return `${fn.name}(${fn.inputs.map((i) => getArgumentForSignature(i)).join(', ')}) ${fn.stateMutability != 'nonpayable' ? fn.stateMutability + ' ' : ''}returns (${fn.outputs
.map((i) => getOutputArgumentForSignature(i))
.filter((s) => s != '')
.join(', ')})`
Expand Down

0 comments on commit 51942ce

Please sign in to comment.