self.wallet is not defined