Update a contract

Update contract settings and attributes.