13 lines
381 B
TypeScript
13 lines
381 B
TypeScript
import { Idl, StateCoder } from "@project-serum/anchor";
|
|
|
|
export class NftBridgeStateCoder implements StateCoder {
|
|
constructor(_idl: Idl) {}
|
|
|
|
encode<T = any>(_name: string, _account: T): Promise<Buffer> {
|
|
throw new Error("NFT Bridge program does not have state");
|
|
}
|
|
decode<T = any>(_ix: Buffer): T {
|
|
throw new Error("NFT Bridge program does not have state");
|
|
}
|
|
}
|