(abiPiece: RawAbiDefinition)
| 254 | |
| 255 | // if stateMutability is not available we will use old spec containing constant and payable |
| 256 | function findStateMutability(abiPiece: RawAbiDefinition): StateMutability { |
| 257 | if (abiPiece.stateMutability) { |
| 258 | return abiPiece.stateMutability |
| 259 | } |
| 260 | |
| 261 | if (abiPiece.constant) { |
| 262 | return 'view' |
| 263 | } |
| 264 | return abiPiece.payable ? 'payable' : 'nonpayable' |
| 265 | } |
| 266 | |
| 267 | export function getFunctionDocumentation( |
| 268 | abiPiece: RawAbiDefinition, |
no outgoing calls
no test coverage detected
searching dependent graphs…