fixed missing end in wallet.rb