Closed juans-chainsafe closed 1 year ago
After you click Transfer 1155 prefab you get the following error:
Exception: byte[] value expected for type 'bytes' Nethereum.ABI.Encoders.BytesTypeEncoder.Encode (System.Object value, System.Boolean checkEndian) (at Assets/Plugins/Nethereum/ABI/Encoders/BytesTypeEncoder.cs:43) Nethereum.ABI.Encoders.BytesTypeEncoder.Encode (System.Object value) (at Assets/Plugins/Nethereum/ABI/Encoders/BytesTypeEncoder.cs:20) Nethereum.ABI.ABIType.Encode (System.Object value) (at Assets/Plugins/Nethereum/ABI/ABIType.cs:84) Nethereum.ABI.FunctionEncoding.ParametersEncoder.EncodeAbiTypes (Nethereum.ABI.ABIType[] abiTypes, System.Object[] values) (at Assets/Plugins/Nethereum/ABI/FunctionEncoding/ParametersEncoder.cs:63) Nethereum.ABI.FunctionEncoding.ParametersEncoder.EncodeParameters (Nethereum.ABI.Model.Parameter[] parameters, System.Object[] values) (at Assets/Plugins/Nethereum/ABI/FunctionEncoding/ParametersEncoder.cs:89) Nethereum.ABI.FunctionEncoding.FunctionCallEncoder.EncodeRequest (System.String sha3Signature, Nethereum.ABI.Model.Parameter[] parameters, System.Object[] values) (at Assets/Plugins/Nethereum/ABI/FunctionEncoding/FunctionCallEncoder.cs:40) Web3Unity.Scripts.Library.Ethers.Contracts.Builders.FunctionBuilder.GetData (System.Object[] functionInput) (at Assets/Web3Unity/Scripts/Library/ChainSafeRPC/Contracts/Builders/FunctionBuilder.cs:32) Web3Unity.Scripts.Library.Ethers.Contracts.Contract.Calldata (System.String method, System.Object[] parameters) (at Assets/Web3Unity/Scripts/Library/ChainSafeRPC/Contracts/Contract.cs:203) Web3WalletTransfer1155Example.OnTransfer1155 () (at Assets/Web3Unity/Scripts/Prefabs/Wallet/Web3WalletTransfer1155Example.cs:31) System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__7_0 (System.Object state) (at <5e2d116f98d140d0a76ec8a673a2a4ac>:0) UnityEngine.UnitySynchronizationContext+WorkRequest.Invoke () (at /Users/bokken/buildslave/unity/build/Runtime/Export/Scripting/UnitySynchronizationContext.cs:153) UnityEngine.UnitySynchronizationContext.Exec () (at /Users/bokken/buildslave/unity/build/Runtime/Export/Scripting/UnitySynchronizationContext.cs:83) UnityEngine.UnitySynchronizationContext.ExecuteTasks () (at /Users/bokken/buildslave/unity/build/Runtime/Export/Scripting/UnitySynchronizationContext.cs:107)
Fixed using my own contract
After you click Transfer 1155 prefab you get the following error: