web3.unity icon indicating copy to clipboard operation
web3.unity copied to clipboard

Refine ERC20, ERC721, ERC1155 utility classes

Open oleksandrchainsafe opened this issue 1 year ago • 8 comments

Removed static Erc20, Erc721, Erc1155 utility classes from package scripts and added corresponding built-in contracts (ErcXXContract) and services (ErcXXService) to the core solution.

Introduced IpfsHelper.

oleksandrchainsafe avatar May 13 '24 17:05 oleksandrchainsafe

I run the setup.sh but Im getting the following build errors:

Library/PackageCache/com.tools.webglthreadingpatcher@c2f3628a02/ThreadingPatcher/Editor/WebGLThreadingPatcher.cs(21,38): error CS1061: 'BuildReport' does not contain a definition for 'GetFiles' and no accessible extension method 'GetFiles' accepting a first argument of type 'BuildReport' could be found (are you missing a using directive or an assembly reference?)

/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs(48,28): error CS0103: The name 'Erc721' does not exist in the current context

/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs(56,26): error CS0103: The name 'Erc721' does not exist in the current context

/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs(64,31): error CS0103: The name 'Erc721' does not exist in the current context

/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc721Tests.cs(72,19): error CS0103: The name 'Erc721' does not exist in the current context

/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs(30,28): error CS0103: The name 'Erc1155' does not exist in the current context

/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs(38,28): error CS0103: The name 'Erc1155' does not exist in the current context

/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs(49,19): error CS0103: The name 'Erc1155' does not exist in the current context

/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(139,22): error CS0103: The name 'Erc20' does not exist in the current context

/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmTests.cs(110,84): error CS0103: The name 'EthMethod' does not exist in the current context

/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(150,23): error CS0103: The name 'Erc721' does not exist in the current context

/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(161,24): error CS0103: The name 'Erc1155' does not exist in the current context

/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(172,29): error CS0103: The name 'Erc20' does not exist in the current context

/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(183,30): error CS0103: The name 'Erc721' does not exist in the current context

/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmTests.cs(152,34): error CS0103: The name 'Erc20' does not exist in the current context

/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/EvmCustomResponseTests.cs(194,31): error CS0103: The name 'Erc1155' does not exist in the current context

/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc1155Tests.cs(129,23): error CS0103: The name 'Erc1155' does not exist in the current context

/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(30,28): error CS0103: The name 'Erc20' does not exist in the current context

/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(38,34): error CS0103: The name 'Erc20' does not exist in the current context

/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(46,27): error CS0103: The name 'Erc20' does not exist in the current context

/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(54,23): error CS0103: The name 'Erc20' does not exist in the current context

/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(62,25): error CS0103: The name 'Erc20' does not exist in the current context

/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Tests/Runtime/Erc20Tests.cs(70,30): error CS0103: The name 'Erc20' does not exist in the current context

Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(43,29): error CS0103: The name 'Erc20' does not exist in the current context

Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(44,65): error CS0103: The name 'Erc20' does not exist in the current context

Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(44,80): error CS0103: The name 'Erc20' does not exist in the current context

Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(75,19): error CS0103: The name 'Erc1155' does not exist in the current context

Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(76,21): error CS0103: The name 'Erc1155' does not exist in the current context

Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(77,65): error CS0103: The name 'Erc1155' does not exist in the current context

Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(77,82): error CS0103: The name 'Erc1155' does not exist in the current context

Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(52,28): error CS0103: The name 'Erc20' does not exist in the current context

Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(53,64): error CS0103: The name 'Erc20' does not exist in the current context

Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(53,79): error CS0103: The name 'Erc20' does not exist in the current context

Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(61,28): error CS0103: The name 'Erc20' does not exist in the current context

Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(62,64): error CS0103: The name 'Erc20' does not exist in the current context

Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(62,79): error CS0103: The name 'Erc20' does not exist in the current context

Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(85,30): error CS0103: The name 'Erc1155' does not exist in the current context

Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(87,61): error CS0103: The name 'Erc1155' does not exist in the current context

Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(87,78): error CS0103: The name 'Erc1155' does not exist in the current context

Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(70,28): error CS0103: The name 'Erc20' does not exist in the current context

Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(71,53): error CS0103: The name 'Erc20' does not exist in the current context

Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(71,68): error CS0103: The name 'Erc20' does not exist in the current context

Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(95,25): error CS0103: The name 'Erc1155' does not exist in the current context

Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(96,50): error CS0103: The name 'Erc1155' does not exist in the current context

Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(96,67): error CS0103: The name 'Erc1155' does not exist in the current context

Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(69,29): error CS0103: The name 'Erc721' does not exist in the current context

Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(70,65): error CS0103: The name 'Erc721' does not exist in the current context

Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(70,81): error CS0103: The name 'Erc721' does not exist in the current context

Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(79,28): error CS0103: The name 'Erc20' does not exist in the current context

Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(80,53): error CS0103: The name 'Erc20' does not exist in the current context

Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(80,68): error CS0103: The name 'Erc20' does not exist in the current context

Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(104,30): error CS0103: The name 'Erc1155' does not exist in the current context

Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(106,53): error CS0103: The name 'Erc1155' does not exist in the current context

Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(106,70): error CS0103: The name 'Erc1155' does not exist in the current context

Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(88,30): error CS0103: The name 'Erc20' does not exist in the current context

Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(89,66): error CS0103: The name 'Erc20' does not exist in the current context

Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(89,81): error CS0103: The name 'Erc20' does not exist in the current context

Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(114,30): error CS0103: The name 'Erc1155' does not exist in the current context

Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(116,53): error CS0103: The name 'Erc1155' does not exist in the current context

Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(116,70): error CS0103: The name 'Erc1155' does not exist in the current context

Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(97,28): error CS0103: The name 'Erc20' does not exist in the current context

Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(98,64): error CS0103: The name 'Erc20' does not exist in the current context

Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(98,79): error CS0103: The name 'Erc20' does not exist in the current context

Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc1155/Erc1155Calls.cs(124,36): error CS0103: The name 'Erc1155' does not exist in the current context

Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(106,30): error CS0103: The name 'Erc20' does not exist in the current context

Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(108,53): error CS0103: The name 'Erc20' does not exist in the current context

Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(108,68): error CS0103: The name 'Erc20' does not exist in the current context

Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(116,30): error CS0103: The name 'Erc20' does not exist in the current context

Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(118,53): error CS0103: The name 'Erc20' does not exist in the current context

Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc20/Erc20Calls.cs(118,68): error CS0103: The name 'Erc20' does not exist in the current context

Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(81,19): error CS0103: The name 'Erc721' does not exist in the current context

Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(82,21): error CS0103: The name 'Erc721' does not exist in the current context

Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(83,52): error CS0103: The name 'Erc721' does not exist in the current context

Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(83,68): error CS0103: The name 'Erc721' does not exist in the current context

Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(91,28): error CS0103: The name 'Erc721' does not exist in the current context

Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(102,70): error CS0103: The name 'Erc721' does not exist in the current context

Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(102,86): error CS0103: The name 'Erc721' does not exist in the current context

Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(110,25): error CS0103: The name 'Erc721' does not exist in the current context

Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(111,50): error CS0103: The name 'Erc721' does not exist in the current context

Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(111,66): error CS0103: The name 'Erc721' does not exist in the current context

Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(119,30): error CS0103: The name 'Erc721' does not exist in the current context

Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(121,53): error CS0103: The name 'Erc721' does not exist in the current context

Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(121,69): error CS0103: The name 'Erc721' does not exist in the current context

Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(129,30): error CS0103: The name 'Erc721' does not exist in the current context

Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(131,53): error CS0103: The name 'Erc721' does not exist in the current context

Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/Erc721/Erc721Calls.cs(131,69): error CS0103: The name 'Erc721' does not exist in the current context

Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(217,98): error CS0103: The name 'EthMethod' does not exist in the current context

Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(329,61): error CS0103: The name 'EthMethod' does not exist in the current context

Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(334,63): error CS0103: The name 'EthMethod' does not exist in the current context

Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(360,57): error CS0103: The name 'EthMethod' does not exist in the current context

Assets/Samples/web3.unity SDK/2.5.0/Web3.Unity Samples/Scripts/Scenes/SampleMain/EVM/EvmCalls.cs(366,59): error CS0103: The name 'EthMethod' does not exist in the current context

Without the setup.sh I only get these:

/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Runtime/Scripts/EVM/Token/Erc1155UnityExtensions.cs(4,38): error CS0234: The type or namespace name 'BuiltIn' does not exist in the namespace 'ChainSafe.Gaming.Evm.Contracts' (are you missing an assembly reference?)

/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Runtime/Scripts/EVM/Token/Erc1155UnityExtensions.cs(5,24): error CS0234: The type or namespace name 'Ipfs' does not exist in the namespace 'ChainSafe.Gaming' (are you missing an assembly reference?)

/Users/juanmanuelspoleti/Desktop/workspace/web3.unity/Packages/io.chainsafe.web3-unity/Runtime/Scripts/EVM/Token/Erc1155UnityExtensions.cs(15,59): error CS0246: The type or namespace name 'Erc1155Contract' could not be found (are you missing a using directive or an assembly reference?)

juans-chainsafe avatar May 13 '24 19:05 juans-chainsafe

@juans-chainsafe Forgot to make the PR draft. It just was not ready for testing. Now it is.

oleksandrchainsafe avatar May 14 '24 13:05 oleksandrchainsafe

@juans-chainsafe I don't understand how this works in dev, because the URI of the NFT is not reachable on my end (might be antivirus issue). For token with id "0", i get this URI https://ipfs.chainsafe.io/ipfs/QmfUHuFj3YL2JMZkyXNtGRV8e9aLJgQ6gcSrqbfjWFvbqQ. It is not accessible through a browser on my end. Try it on yours pls.

@sneakzttv Do you know why it works in dev, but when I try to access URI of the same NFT in this branch, it fails? We're accessing the NFT with ID "0" and contract address "0xAA2EbE78aa788d13AfFaaefD38C93333bbC4d51e" right?

oleksandrchainsafe avatar May 20 '24 15:05 oleksandrchainsafe

@juans-chainsafe I don't understand how this works in dev, because the URI of the NFT is not reachable on my end (might be antivirus issue). For token with id "0", i get this URI https://ipfs.chainsafe.io/ipfs/QmfUHuFj3YL2JMZkyXNtGRV8e9aLJgQ6gcSrqbfjWFvbqQ. It is not accessible through a browser on my end. Try it on yours pls.

@sneakzttv Do you know why it works in dev, but when I try to access URI of the same NFT in this branch, it fails? We're accessing the NFT with ID "0" and contract address "0xAA2EbE78aa788d13AfFaaefD38C93333bbC4d51e" right?

Serialized variables im guessing, probably different. That url is down also, which function is it on?

sneakzttv avatar May 20 '24 16:05 sneakzttv

Serialized variables im guessing, probably different. That url is down also, which function is it on?

It's Erc1155.ImportNftTexture1155(), called from Erc1155Calls MonoBehaviour.

oleksandrchainsafe avatar May 20 '24 16:05 oleksandrchainsafe

works now, congestion perhaps

metadata: https://ipfs.chainsafe.io/ipfs/QmfUHuFj3YL2JMZkyXNtGRV8e9aLJgQ6gcSrqbfjWFvbqQ image: https://ipfs.chainsafe.io/ipfs/QmSCzzDrn764mXk3RbrYNpNSNn2DTLG4pc9X7XHuhG5y7Q

sneakzttv avatar May 20 '24 17:05 sneakzttv

we're going to have to majorly change the docs again xD

sneakzttv avatar May 21 '24 03:05 sneakzttv

URI sample now is working in the editor ✅

But when you try to login in a WebGL build it fails:

Web3Exception: Resource ChainSafe.Gaming.Resources.erc-20-abi.json not found in the provided assembly.
  at ChainSafe.Gaming.Evm.Utils.AbiHelper.ReadAbiFromResources (System.Reflection.Assembly assembly, System.String resourceName) [0x00000] in <00000000000000000000000000000000>:0
--- End of stack trace from previous location where exception was thrown ---

Created this ticket for this issue https://github.com/ChainSafe/web3.unity/issues/966

juans-chainsafe avatar May 21 '24 16:05 juans-chainsafe

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
3 out of 4 committers have signed the CLA.

:white_check_mark: juans-chainsafe
:white_check_mark: creeppak
:white_check_mark: kantagara
:x: =


= seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

CLAassistant avatar May 28 '24 06:05 CLAassistant

@juans-chainsafe should be fixed. Closes #966

kantagara avatar May 28 '24 07:05 kantagara

closes #952

juans-chainsafe avatar May 28 '24 19:05 juans-chainsafe