OpenZeppelin/contracts-wizard

Update Cairo formatting

ericglau opened this issue · 0 comments

Currently the formatting for implicit args, args, and return value appear like:

@external
func transferFrom{
        syscall_ptr: felt*,
        pedersen_ptr: HashBuiltin*,
        range_check_ptr
}(sender: felt, recipient: felt, amount: Uint256) -> (success: felt) {
    return ERC20.transfer_from(sender, recipient, amount);
}

Update this format to be consistent with the styling used in Contracts for Cairo, for example:

@external
func transferFrom{syscall_ptr: felt*, pedersen_ptr: HashBuiltin*, range_check_ptr}(
    sender: felt, recipient: felt, amount: Uint256
) -> (success: felt) {
    return ERC20.transfer_from(sender, recipient, amount);
}