forked from cerc-io/registry-sdk
to byte array
This commit is contained in:
parent
c0f71b0b8f
commit
e295b8de36
@ -166,6 +166,10 @@ export class Account {
|
|||||||
assert(message);
|
assert(message);
|
||||||
const eipMessageDomain: any = message.eipToSign.domain;
|
const eipMessageDomain: any = message.eipToSign.domain;
|
||||||
|
|
||||||
|
if(message.eipToSign.message.msgs[0].value.payload!=null){
|
||||||
|
message.eipToSign.message.msgs[0].value.payload.record.attributes.value=Array.from(message.eipToSign.message.msgs[0].value.payload.record.attributes.value)
|
||||||
|
}
|
||||||
|
|
||||||
const signature = signTypedData({
|
const signature = signTypedData({
|
||||||
data: {
|
data: {
|
||||||
types: message.eipToSign.types as MessageTypes,
|
types: message.eipToSign.types as MessageTypes,
|
||||||
|
@ -44,14 +44,11 @@ const MSG_SET_RECORD_TYPES = {
|
|||||||
{ name: 'create_time', type: 'string' },
|
{ name: 'create_time', type: 'string' },
|
||||||
{ name: 'expiry_time', type: 'string' },
|
{ name: 'expiry_time', type: 'string' },
|
||||||
{ name: 'deleted', type: 'bool' },
|
{ name: 'deleted', type: 'bool' },
|
||||||
{ name: 'attributes', type: 'string' },
|
{ name: 'attributes', type: 'TypePayloadRecordAttributes' },
|
||||||
],
|
],
|
||||||
TypePayloadRecordAttributes: [
|
TypePayloadRecordAttributes: [
|
||||||
{ name: 'url', type: 'string' },
|
{ name: 'type_url', type: 'string' },
|
||||||
{ name: 'repo_registration_record_cid', type: 'string' },
|
{ name: 'value', type: 'uint8[]' },
|
||||||
{ name: 'build_artifact_cid', type: 'string' },
|
|
||||||
{ name: 'tls_cert_cid', type: 'string' },
|
|
||||||
{ name: 'type', type: 'string' },
|
|
||||||
],
|
],
|
||||||
TypePayloadSignatures: [
|
TypePayloadSignatures: [
|
||||||
{ name: 'sig', type: 'string' },
|
{ name: 'sig', type: 'string' },
|
||||||
|
Loading…
Reference in New Issue
Block a user