The plaintiff’s case seems to have depended mainly on his own testimony. If he was not a competent witness, the evidence would have been insufficient to support the action. The case therefore resolves itself into the question whether the plaintiff, under St. 1857, c. 305, § 1, was a competent witness ? We think it very clear that he was not, because he comes within the proviso or exception to the general clause of the statute, that “ where one of the original parties to the contract or cause of action then in issue and on trial is dead, the other party shall not be admitted to testify in his own favor.” The plaintiff’s whole case depends on his proving a contract to which Electa Ayres, who is dead, was a party. The trust on which he relies to maintain the action was created by the deceased. It is her agreement that the money deposited in the Savings Bank belonging to her should be held in trust for the plaintiff’s wife, which the plaintiff must prove in order to show any title to her money in the hands of the defendant. This is the fact on which his claim is founded, and which is denied by the defendant. It is the contract or cause of action in issue and on trial. If no such trust was ever created, then it is clear that the money belongs to the defendant as administrator. The purpose of the statute is to exclude the testimony of a party to a contract, who is also party to a suit seeking to establish the contract, in support of his action, when the other party to it, who was equally cognizant of the facts, is no longer living to give his version of the facts. The obvious injustice which might be occasioned by the admission of the evidence of a living party under such circumstances was intended to be prevented by the exception contained in the proviso of the statute. The case at bar is clearly within the mischief which it was the object of the statute to avoid.
In determining whether a case is within this proviso, the form of the action may be quite immaterial. It furnishes in many case» no certain test of the real cause of action. A promissory note, or money due on a special contract after it is full) per*133formed, may be recovered under a general count for money had and received, or services performed. But no one can doubt that under such a declaration the real cause of action in issue and on trial would be the note or contract on which the plaintiff’s right to recover really depended. So here. The form of action is money had and received. The plaintiff attempts to support it by proof of a contract creating a trust in favor of his deceased wife. Failing to prove this, he has no case. It is therefore the contract in issue. Exceptions sustained