fix: bpf programs are now shared objects
This commit is contained in:
@ -25,7 +25,7 @@ test('load BPF program', async () => {
|
|||||||
|
|
||||||
const connection = new Connection(url);
|
const connection = new Connection(url);
|
||||||
const from = await newAccountWithTokens(connection, 1024);
|
const from = await newAccountWithTokens(connection, 1024);
|
||||||
const data = await fs.readFile('test/fixtures/noop/noop.o');
|
const data = await fs.readFile('test/fixtures/noop/noop.so');
|
||||||
const programId = await BpfLoader.load(connection, from, data);
|
const programId = await BpfLoader.load(connection, from, data);
|
||||||
const transaction = new Transaction().add({
|
const transaction = new Transaction().add({
|
||||||
keys: [from.publicKey],
|
keys: [from.publicKey],
|
||||||
|
2
web3.js/test/fixtures/noop/build.sh
vendored
2
web3.js/test/fixtures/noop/build.sh
vendored
@ -4,4 +4,4 @@ set -ex
|
|||||||
cd "$(dirname "$0")"
|
cd "$(dirname "$0")"
|
||||||
|
|
||||||
make -C ../../../examples/bpf-c-noop/
|
make -C ../../../examples/bpf-c-noop/
|
||||||
cp ../../../examples/bpf-c-noop/out/noop.o .
|
cp ../../../examples/bpf-c-noop/out/noop.so .
|
||||||
|
BIN
web3.js/test/fixtures/noop/noop.o
vendored
BIN
web3.js/test/fixtures/noop/noop.o
vendored
Binary file not shown.
BIN
web3.js/test/fixtures/noop/noop.so
vendored
Executable file
BIN
web3.js/test/fixtures/noop/noop.so
vendored
Executable file
Binary file not shown.
Reference in New Issue
Block a user