Skip to content

Commit

Permalink
Fix: buildStructTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
1329576606 committed Sep 13, 2023
1 parent 80c0370 commit 044b8a2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import org.web3j.abi.datatypes.generated.Int256;
import org.web3j.abi.datatypes.generated.StaticArray5;
import org.web3j.abi.datatypes.generated.Uint256;
import org.web3j.abi.datatypes.reflection.Parameterized;
import org.web3j.crypto.Credentials;
import org.web3j.protocol.Web3j;
import org.web3j.protocol.core.RemoteFunctionCall;
Expand Down Expand Up @@ -209,7 +210,7 @@ public Entity(byte[] bytesField, byte[] extraData, List<String> stringArrayField
this.addressArrayFieldStatic = addressArrayFieldStatic;
}

public Entity(DynamicBytes bytesField, Bytes32 extraData, DynamicArray<Utf8String> stringArrayField, DynamicArray<DynamicBytes> bytesArrayField, DynamicArray<Bytes2> bytes2ArrayField, DynamicArray<Bytes32> bytes32ArrayField, DynamicArray<Uint256> unitArrayField, DynamicArray<Uint256> unit256ArrayField, DynamicArray<Bool> boolField, DynamicArray<Int256> intArrayField, DynamicArray<Address> addressArrayField, StaticArray5<Utf8String> stringArrayFieldStatic, StaticArray5<DynamicBytes> bytesArrayFieldStatic, StaticArray5<Bytes2> bytes2ArrayFieldStatic, StaticArray5<Bytes32> bytes32ArrayFieldStatic, StaticArray5<Uint256> unitArrayFieldStatic, StaticArray5<Uint256> unit256ArrayFieldStatic, StaticArray5<Bool> boolFieldStatic, StaticArray5<Int256> intArrayFieldStatic, StaticArray5<Address> addressArrayFieldStatic) {
public Entity(DynamicBytes bytesField, Bytes32 extraData, @Parameterized(type = Utf8String.class) DynamicArray<Utf8String> stringArrayField, @Parameterized(type = DynamicBytes.class) DynamicArray<DynamicBytes> bytesArrayField, @Parameterized(type = Bytes2.class) DynamicArray<Bytes2> bytes2ArrayField, @Parameterized(type = Bytes32.class) DynamicArray<Bytes32> bytes32ArrayField, @Parameterized(type = Uint256.class) DynamicArray<Uint256> unitArrayField, @Parameterized(type = Uint256.class) DynamicArray<Uint256> unit256ArrayField, @Parameterized(type = Bool.class) DynamicArray<Bool> boolField, @Parameterized(type = Int256.class) DynamicArray<Int256> intArrayField, @Parameterized(type = Address.class) DynamicArray<Address> addressArrayField, @Parameterized(type = Utf8String.class) StaticArray5<Utf8String> stringArrayFieldStatic, @Parameterized(type = DynamicBytes.class) StaticArray5<DynamicBytes> bytesArrayFieldStatic, @Parameterized(type = Bytes2.class) StaticArray5<Bytes2> bytes2ArrayFieldStatic, @Parameterized(type = Bytes32.class) StaticArray5<Bytes32> bytes32ArrayFieldStatic, @Parameterized(type = Uint256.class) StaticArray5<Uint256> unitArrayFieldStatic, @Parameterized(type = Uint256.class) StaticArray5<Uint256> unit256ArrayFieldStatic, @Parameterized(type = Bool.class) StaticArray5<Bool> boolFieldStatic, @Parameterized(type = Int256.class) StaticArray5<Int256> intArrayFieldStatic, @Parameterized(type = Address.class) StaticArray5<Address> addressArrayFieldStatic) {
super(bytesField, extraData, stringArrayField, bytesArrayField, bytes2ArrayField, bytes32ArrayField, unitArrayField, unit256ArrayField, boolField, intArrayField, addressArrayField, stringArrayFieldStatic, bytesArrayFieldStatic, bytes2ArrayFieldStatic, bytes32ArrayFieldStatic, unitArrayFieldStatic, unit256ArrayFieldStatic, boolFieldStatic, intArrayFieldStatic, addressArrayFieldStatic);
this.bytesField = bytesField.getValue();
this.extraData = extraData.getValue();
Expand Down

0 comments on commit 044b8a2

Please sign in to comment.