Method and device for calling contracts