KRNL Platform Guidebook
KRNL Platformkrnl.xyz
  • Introduction
    • Introduction
    • How Does kOS Work?
  • Setup
    • Getting Started with KRNL
    • Quick Start (CLI)
    • Quick Start (Online IDE)
      • Quick Start (Remix IDE)
      • Quick Start (Atlas IDE)
    • create-krnl-app
    • Platform Registration
  • Kernel
    • What are Kernels?
    • Kernel Registration
      • Kernel Registration (on-chain)
      • Kernel Registration (off-chain)
    • Supported OpenAPI (Off-chain Kernel)
    • Staking
  • Smart Contract
    • Steps for Smart Contract Developers
    • Choosing Kernel(s)
    • Token Authority
      • What is a Token Authority?
      • How to Build a Token Authority?
      • Generic Token Authority
      • How to Deploy a Token Authority on Oasis?
    • Decoding Kernel Responses in Solidity
    • How to Integrate Your Smart Contract with kOS?
    • Smart Contract Registration
  • DApp
    • dApp Registration
    • KRNL SDK Installation
    • Usage
    • KRNL Node RPC
  • Miscellaneous
    • Overview
    • What is the KRNL Platform?
    • What are You Trying to BUIDL?
    • Smart Contract Fundamentals
      • Why Do I Have to Register a Smart Contract?
      • How to Deploy a Smart Contract?
    • Recommended Kernels List
  • Helpful Resources
    • New to Web3?
    • Dictionary
    • Testnet Faucets
    • How to Get Etherscan API Key?
  • Litepaper
    • Litepaper
      • Overview
      • Problem Statement
      • Current State Does Not Solve the Problem
      • Introducing Kernels
      • Ecosystem of Kernels
      • The KRNL Operating System (kOS)
      • Decentralization and Security Considerations
      • Use Cases for KRNL
  • Appendices
    • FAQ
    • Bounty Program
    • Social Medias
    • Thank You
  • Workshop
    • KRNL Workshop
    • Speed's Workshop
Powered by GitBook
On this page
  • Important Notes
  • Quick Start (Remix)
  • KRNL Platform

Was this helpful?

  1. Appendices

FAQ

PreviousUse Cases for KRNLNextBounty Program

Last updated 9 days ago

Was this helpful?

Important Notes

  • Images on this page are clickable and zoomable.


Quick Start (Remix)

CompilerError: Stack too deep

This issue is caused because of skipping step 5, "Set up the compiler config".

Next Steps:

  • Go back to the

  • Go to

  • Redo step

You need to change the configuration file in remix, as well as enable via-ir to true.

Ensure you complete step 5 (from Quick Start (Remix IDE)) OR copy and paste the following snippet into the textbox below the "Use configuration file" toggle.

smart-contracts/remix-ide/compiler_config.json

Already "verified" TA but ABI Playground does not work

The open and accessible ABI Playground from Oasis Network is a wonderful innovation. Sometimes, however, it can experience minor issues, such as the one seen in the image above.

This issue could happen for many reasons, for example:

  • The Blockchain state might not have changed yet

  • A lot of users might be interacting with ABI Playground at the same time

  • The owner of the Token Authority made an error during the deployment

What can you do to solve the problem?

Option 1: You can use a KRNL Sandbox feature to receive the TA public key by putting in the TA address.

Option 2: This option is a little more complex, but you can call your TA directly through other tools, such as Foundry

ChainID 23295 not found supported etherscan network

As this is another ABI Playground Error, you can follow the same two solutions as the previous issue to resolve the problem:

Option 1 - You can use a KRNL Sandbox feature to receive the TA public key by putting in the TA address.

Option 2 - This option is a little more complex, but you can call your TA directly through other tools, such as Foundry.

[Oasis Faucet] Failed to fund account: Invalid Account

To solve this error, make sure that you have added the Oasis Sapphire Testnet to your MetaMask, then refresh the page one time.

When making a request from the faucet, please make sure you select Sapphire from the dropdown menu. We are focusing specifically on Oasis Sapphire Testnet, so by selecting any other option, you will encounter errors.

Unable to open Access Token

This issue is likely caused by simple mistakes during the setting process.

Here are the steps that you could follow:

  • While deploying Sample.sol, make sure to use Token Authority "Public Key"

  • While registering on KRNL Platform, make sure to use Token Authority "smart contract address"

To Check?

https://abi-playground.oasis.io/?contractAddress=0x123123123&network=23295

Replace the "0x123123123" from the above URL and paste it on your web browser.

If abi-playground shows error, it potentially means that there are mistakes during the setting up process.

Note: Using an invalid Token Authority (TA) address may result in an inability to open an access token, as the Access Token depends on calling the correct Token Authority.

ABI Playground: Invalid Address

As stated in the image, the error is an invalid address.

For this case, the smart contract address has to be "0x123...." and not "<0x123...>".

The issue here are the brackets < and >, by removing them from the URL, you will solve the problem.

Warning: Unused local variable

Please note, this is just a warning statement indicating that there is an unused local variable in the Token Authority contract.

As it is not an error statement, you may proceed.

[Remix IDE] Etherscan Verification Error

The above issue could be caused by a number of reasons:

  • It could be an issue on Etherscan's side, therefore you should try again later.

  • Failure to provide an API key will cause Etherscan to have an error. Include the API key and try again.

  • You may need to refresh your browser and verify again.

[Remix IDE] The Etherscan box is not enabled on Remix IDE

To solve the issue shown in the image above, simply click "Enable?" for Etherscan and then paste your Etherscan API Key.

For more detailed information on this issue, visit the following page:

[Remix IDE] "Account" wallet address does not show after connecting MetaMask to Remix IDE

There are several different methods that may solve this issue:

  • By using different supported browser such as: Firefox, Chrome, or Brave

  • By using different wallet address

  • By refreshing the page and reconnecting your wallet

  • By using WalletConnect instead of Injected Provider

Invalid TA address

As stated in the image above, the Token Authority Address is either invalid or does not exist.

Double-check your information, and if it's still showing this error message, check your TA contract through Oasis Explorer, to make sure it has already been deployed on the Oasis Sapphire network.

This link should help:

Note: It's possible that there was a mistake made during the copying and pasting process.

Do not skip any step in the Quick Start (Remix IDE).

[Remix IDE] How can I verify my contract?

You must install the contract verification plugin in the plugin manager.

Error 70102: ___ is not allowed to be executed

This issue is possibly caused by using a different kernel ID from the Quick Start code template.

If you are trying to complete the Quick Start (Remix IDE), you must use kernel ID 337.

Make sure you check Part III: Smart Contract Registration step 3

Error 70501: Failed to sign

This bug is likely due to missing some steps from the Quick Start (Remix IDE)

For example:

Noted: It is recommended that you start from the beginning and follow the tutorial more carefully, or try to retrace your steps to find the error and progress from there.

RouteScan and/or Blockscout not verified

Don't worry, these components are not mandatory to complete Quick Start setup.

[Remix IDE] Error: Clone Git Repository

This issue could be coming from Remix IDE's end.

The cause of it could be related to the newly added Git Plugin to Remix IDE, which causes an unexpected bug on Git.

Here's one solution process for a temporary debug:

  1. Download ZIP from the "krnl-toolkit" code repository

  2. Manually import the "smart-contracts" folder from the repository into Remix IDE.

Once completed, you should be able to resume your progress on the Quick Start.

Reminder: Ensure you also extract or unzip the files in step two


KRNL Platform

[Smart Contract Registration] "You do not own this Smart Contract."

As shown in the error, the current contract that you have input is not the contract you deployed with your current wallet.

You might have used a different wallet address during smart contract deployment

Make sure you follow Part II: Steps for Smart Contracts in the Quick Start (Remix IDE) tutorial

During , you might have used the "TA Contract Address" instead of "TAPublicKeyAddress" as a constructor during the deployment of Sample.sol

During , you might select the wrong smart contract for the deployment

During "III. Smart Contract Registration" in , you are asked to fill the required values and click "Activate". At this stage, make sure you use your deployed TA Contract Address, not the TA PublicKeyAddress.

Go to our on GitHub

How to Get Etherscan API Key?
Oasis Explorer (Sapphire)
step 12
Quick Start (Remix IDE)
Quick Start (Remix IDE)
step 20
step 20
krnl-toolkit repository
II. Steps for Smart Contracts
5. Set up the compiler config
Quick Start (Remix IDE)
step 3