fix: update buffer-layout to fix downstream bundler issues (#18529)
* fix: update buffer-layout to fix downstream bundler issues * chore: run check on generated type declaration
This commit is contained in:
@@ -94,8 +94,8 @@ export class ValidatorInfo {
|
||||
|
||||
if (configKeys[0].publicKey.equals(VALIDATOR_INFO_KEY)) {
|
||||
if (configKeys[1].isSigner) {
|
||||
const rawInfo = Layout.rustString().decode(Buffer.from(byteArray));
|
||||
const info = JSON.parse(rawInfo);
|
||||
const rawInfo: any = Layout.rustString().decode(Buffer.from(byteArray));
|
||||
const info = JSON.parse(rawInfo as string);
|
||||
assertType(info, InfoString);
|
||||
return new ValidatorInfo(configKeys[1].publicKey, info);
|
||||
}
|
||||
|
Reference in New Issue
Block a user