PHP WebShell
Текущая директория: /opt/BitGoJS/node_modules/@ethersproject/abi/lib.esm/coders
Просмотр файла: null.js
"use strict";
import { Coder } from "./abstract-coder";
export class NullCoder extends Coder {
constructor(localName) {
super("null", "", localName, false);
}
defaultValue() {
return null;
}
encode(writer, value) {
if (value != null) {
this._throwError("not null", value);
}
return writer.writeBytes([]);
}
decode(reader) {
reader.readBytes(0);
return reader.coerce(this.name, null);
}
}
//# sourceMappingURL=null.js.mapВыполнить команду
Для локальной разработки. Не используйте в интернете!