Class: OmniAuth::Nft::NftController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- OmniAuth::Nft::NftController
- Defined in:
- app/controllers/omni_auth/nft/nft_controller.rb
Overview
Controller for OmniAuth::Strategies::Nft request phase.
Constant Summary collapse
- WALLET_SIG_SESSION_KEY =
"nft__wallet_sig"
- SIG_MESSAGE_SESSION_KEY =
"nft__sig_message"
Instance Method Summary collapse
Instance Method Details
#request_phase ⇒ Object
11 12 13 14 15 16 17 18 19 20 |
# File 'app/controllers/omni_auth/nft/nft_controller.rb', line 11 def request_phase return unless address.present? @address = address return unless address_signed? @sig = sig checker = NftChecker.init(:opensea, testnet: true) @list = checker.list_nfts({ slug: "untitled-collection-4919696" }, address) end |