Skip to content

Commit

Permalink
Update protobuf patch
Browse files Browse the repository at this point in the history
  • Loading branch information
schnetzlerjoe committed Jun 5, 2023
1 parent 2c6a12a commit 37b2e43
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 8 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/contract-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
# TODO: ['14.x', '16.x']
node-version: [14.x]
node-version: [16.x]
steps:
- name: Checkout dapp
uses: actions/checkout@v2
Expand Down
6 changes: 3 additions & 3 deletions contract/src/ica.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { assert, details as X } from '@agoric/assert';
import { TxBody } from 'cosmjs-types/cosmos/tx/v1beta1/tx.js';
import { Any } from 'cosmjs-types/google/protobuf/any.js';
import { E } from '@endo/eventual-send';
import { encodeBase64, decodeBase64 } from '@endo/base64';
import { toBase64, fromBase64 } from '@cosmjs/encoding/build/base64.js';

/**
* Create an ICA account/channel on the connection provided
Expand Down Expand Up @@ -61,7 +61,7 @@ export const sendICAPacket = async (msgs, connection) => {
);

// Convert the base64 string into a uint8array
let valueBytes = decodeBase64(msg.data)
let valueBytes = fromBase64(msg.data)

// Generate the msg.
const txmsg = Any.fromPartial({
Expand All @@ -82,7 +82,7 @@ export const sendICAPacket = async (msgs, connection) => {
/** @type {ICS27ICAPacket} */
const ics27 = {
type: 1,
data: encodeBase64(buf),
data: toBase64(buf),
memo: '',
};

Expand Down
13 changes: 13 additions & 0 deletions patches/@protobufjs+inquire+1.1.0.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/node_modules/@protobufjs/inquire/index.js b/node_modules/@protobufjs/inquire/index.js
index 33778b5..a7aee2d 100644
--- a/node_modules/@protobufjs/inquire/index.js
+++ b/node_modules/@protobufjs/inquire/index.js
@@ -9,7 +9,7 @@ module.exports = inquire;
*/
function inquire(moduleName) {
try {
- var mod = eval("quire".replace(/^/,"re"))(moduleName); // eslint-disable-line no-eval
+ var mod = (eval)("quire".replace(/^/,"re"))(moduleName); // eslint-disable-line no-eval
if (mod && (mod.length || Object.keys(mod).length))
return mod;
} catch (e) {} // eslint-disable-line no-empty
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1929,7 +1929,7 @@ buffer@^5.5.0:
base64-js "^1.3.1"
ieee754 "^1.1.13"

"bufferfromfile@github:agoric-labs/BufferFromFile#Agoric-built":
bufferfromfile@agoric-labs/BufferFromFile#Agoric-built:
version "0.4.377"
resolved "https://codeload.github.com/agoric-labs/BufferFromFile/tar.gz/691031035856fadba2603e52f4411160d7f34ed6"
dependencies:
Expand Down Expand Up @@ -2860,7 +2860,7 @@ eslint@^7.23.0, eslint@^7.32.0:
text-table "^0.2.0"
v8-compile-cache "^2.0.3"

"esm@github:agoric-labs/esm#Agoric-built":
esm@agoric-labs/esm#Agoric-built:
version "3.2.25"
resolved "https://codeload.github.com/agoric-labs/esm/tar.gz/3603726ad4636b2f865f463188fcaade6375638e"

Expand Down Expand Up @@ -5243,7 +5243,7 @@ rollup-pluginutils@^2.4.1:
dependencies:
estree-walker "^0.6.1"

"rollup@github:endojs/endo#rollup-2.7.1-patch-1":
rollup@endojs/endo#rollup-2.7.1-patch-1:
version "2.70.1-endo.1"
resolved "https://codeload.github.com/endojs/endo/tar.gz/54060e784a4dbe77b6692f17344f4d84a198530d"
optionalDependencies:
Expand Down

0 comments on commit 37b2e43

Please sign in to comment.