Linking my account martinloesethjensen on GitHub with my address 5HNpf9ydo2C2TFBS1frahQeNDVdG2QABGckGsBNKxPq44Mgb on Substrate in mycryptoprofile.io, and the challenge code is: 600c7a1d9f570466a81a36e7eb2e3d6a. #LitentryVerifyMyAddress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: UNLICENSED | |
pragma solidity ^0.8.0; | |
contract VolcanoCoin { | |
uint256 totalSupply = 10000; | |
address owner; | |
modifier onlyOwner { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:args/args.dart'; | |
import 'package:http/http.dart' as http; | |
import 'dart:convert' as convert; | |
/// KSM Precision [kusama guide](https://guide.kusama.network/docs/en/kusama-parameters#precision) | |
const ksmPrecision = 1000000000000; | |
void main(List<String> args) async { | |
var parser = ArgParser(); | |
var authorId; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.amshove.kluent.`should be` | |
import org.amshove.kluent.shouldBeFalse | |
import org.amshove.kluent.shouldBeTrue | |
import org.junit.jupiter.api.Nested | |
import org.junit.jupiter.api.Test | |
class UserTest { | |
private val user = User(1, "Alice") | |
@Test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Adds https prefix if link does not have prefix. It will also change old prefix http to https. | |
* @return link/url with https prefix | |
*/ | |
fun String.toHttpsPrefix(): String? = if (isNotEmpty() && !startsWith("https://") && !startsWith("http://")) { | |
"https://$this" | |
} else if (startsWith("http://")) { | |
replace("http://", "https://") | |
} else this |