godprotocol 1.2.3 → 1.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -23,7 +23,7 @@ class Account extends Utils{
23
23
  let chain = await this.chain.chain(phy)
24
24
 
25
25
  if (compiler){
26
- !from_reload && await this.manager.oracle.write(`${phy}/air`, sequence, {account: this.physical_address, prefix: '.codes', address: phy})
26
+ !from_reload && await this.manager.oracle.write(`${phy}.air`, sequence, {account: this.physical_address, prefix: '.codes', address: phy})
27
27
 
28
28
  sequence = await this.compiler.to_sequence(sequence, address)
29
29
  sequence = sequence[0]
@@ -45,7 +45,7 @@ class Account extends Utils{
45
45
  config = await folder.readone(_id? {_id}: null)
46
46
 
47
47
  if (!config){
48
- let code = await this.manager.oracle.read(`${phy}/air`, {account: this.physical_address, prefix: '.codes', address: phy})
48
+ let code = await this.manager.oracle.read(`${phy}.air`, {account: this.physical_address, prefix: '.codes', address: phy})
49
49
  if (code){
50
50
  code = await this.compiler.to_sequence(code, address)
51
51
  code = code[0]
@@ -99,7 +99,7 @@ class Account extends Utils{
99
99
  let phy = `${this.physical_address}/${address}`
100
100
 
101
101
  if (from === '.codes'){
102
- let res = await this.manager.oracle.read(`${phy}/air`, {account: this.physical_address, address: phy, prefix: from})
102
+ let res = await this.manager.oracle.read(`${phy}.air`, {account: this.physical_address, address: phy, prefix: from})
103
103
  if (res){
104
104
  return {result: res}
105
105
  }else return {message: 'Code not found'}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "godprotocol",
3
- "version": "1.2.3",
3
+ "version": "1.2.4",
4
4
  "description": "A distributed computing environment",
5
5
  "main": "Index.js",
6
6
  "scripts": {