Library Importing

To Import a library you first need to choose one from the list

https://github.com/phantasma-io/phantasmaphoenix-gitbook/blob/main/developers/compiler/basics/broken-reference/README.md

Example

In this example, we will be importing the NFT library, but it could have been any of the other libraries in the list.

contract test {
	import NFT;
	
	public sum(a:number, b:number):number
	{
		return a + b;
	}
}

Last updated