Skip to content

Commit

Permalink
fix: return memory proposal instead of storage
Browse files Browse the repository at this point in the history
Signed-off-by: 0xRaccoon <[email protected]>
  • Loading branch information
0xRaccoon committed Dec 20, 2023
1 parent d6c1343 commit b4410f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion solidity/contracts/governance/WonderGovernor.sol
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,7 @@ abstract contract WonderGovernor is
return _proposalTypes();
}

function _getProposal(uint256 _proposalId) internal view virtual returns (ProposalCore storage) {
function _getProposal(uint256 _proposalId) internal view virtual returns (ProposalCore memory) {
return _proposals[_proposalId];
}
}

0 comments on commit b4410f1

Please sign in to comment.