String Concatination Error

Hello Team,
I am trying to concatenate multiple values as shown below.

let packed_string : string = String.concat(Address.to_str(sender),Address.to_str(receiver),Int.to_str(input_amount),Bytes.to_str(hash_lock),Int.to_str(expiration))

I am getting the exception: [type_error: Cannot unify (string, string) => string and (string, string, string, string, string) => string]

Is it that String.Concat only takes a finite amount of variable as input or am I missing out on something here?

Thanks for the help in advance.

I am using @compiler >= 6, if that helps.

you net to use String.concats(['a', 'b', 'c'])

see Standard library - æternity Sophia Language

1 Like

Thanks for the reply. This helps.